Lines Matching refs:dev

105 static inline int mei_hbm_write_message(struct mei_device *dev,  in mei_hbm_write_message()  argument
109 return mei_write_message(dev, hdr, sizeof(*hdr), data, hdr->length); in mei_hbm_write_message()
117 void mei_hbm_idle(struct mei_device *dev) in mei_hbm_idle() argument
119 dev->init_clients_timer = 0; in mei_hbm_idle()
120 dev->hbm_state = MEI_HBM_IDLE; in mei_hbm_idle()
128 void mei_hbm_reset(struct mei_device *dev) in mei_hbm_reset() argument
130 mei_me_cl_rm_all(dev); in mei_hbm_reset()
132 mei_hbm_idle(dev); in mei_hbm_reset()
184 static inline int mei_hbm_cl_write(struct mei_device *dev, struct mei_cl *cl, in mei_hbm_cl_write() argument
192 return mei_hbm_write_message(dev, &mei_hdr, buf); in mei_hbm_cl_write()
220 struct mei_cl *mei_hbm_cl_find_by_cmd(struct mei_device *dev, void *buf) in mei_hbm_cl_find_by_cmd() argument
225 list_for_each_entry(cl, &dev->file_list, link) in mei_hbm_cl_find_by_cmd()
239 int mei_hbm_start_wait(struct mei_device *dev) in mei_hbm_start_wait() argument
243 if (dev->hbm_state > MEI_HBM_STARTING) in mei_hbm_start_wait()
246 mutex_unlock(&dev->device_lock); in mei_hbm_start_wait()
247 ret = wait_event_timeout(dev->wait_hbm_start, in mei_hbm_start_wait()
248 dev->hbm_state != MEI_HBM_STARTING, in mei_hbm_start_wait()
250 mutex_lock(&dev->device_lock); in mei_hbm_start_wait()
252 if (ret == 0 && (dev->hbm_state <= MEI_HBM_STARTING)) { in mei_hbm_start_wait()
253 dev->hbm_state = MEI_HBM_IDLE; in mei_hbm_start_wait()
254 dev_err(dev->dev, "waiting for mei start failed\n"); in mei_hbm_start_wait()
267 int mei_hbm_start_req(struct mei_device *dev) in mei_hbm_start_req() argument
274 mei_hbm_reset(dev); in mei_hbm_start_req()
284 dev->hbm_state = MEI_HBM_IDLE; in mei_hbm_start_req()
285 ret = mei_hbm_write_message(dev, &mei_hdr, &start_req); in mei_hbm_start_req()
287 dev_err(dev->dev, "version message write failed: ret = %d\n", in mei_hbm_start_req()
292 dev->hbm_state = MEI_HBM_STARTING; in mei_hbm_start_req()
293 dev->init_clients_timer = MEI_CLIENTS_INIT_TIMEOUT; in mei_hbm_start_req()
294 mei_schedule_stall_timer(dev); in mei_hbm_start_req()
305 static int mei_hbm_enum_clients_req(struct mei_device *dev) in mei_hbm_enum_clients_req() argument
317 enum_req.flags |= dev->hbm_f_dc_supported ? in mei_hbm_enum_clients_req()
319 enum_req.flags |= dev->hbm_f_ie_supported ? in mei_hbm_enum_clients_req()
322 ret = mei_hbm_write_message(dev, &mei_hdr, &enum_req); in mei_hbm_enum_clients_req()
324 dev_err(dev->dev, "enumeration request write failed: ret = %d.\n", in mei_hbm_enum_clients_req()
328 dev->hbm_state = MEI_HBM_ENUM_CLIENTS; in mei_hbm_enum_clients_req()
329 dev->init_clients_timer = MEI_CLIENTS_INIT_TIMEOUT; in mei_hbm_enum_clients_req()
330 mei_schedule_stall_timer(dev); in mei_hbm_enum_clients_req()
343 static int mei_hbm_me_cl_add(struct mei_device *dev, in mei_hbm_me_cl_add() argument
349 mei_me_cl_rm_by_uuid(dev, uuid); in mei_hbm_me_cl_add()
361 mei_me_cl_add(dev, me_cl); in mei_hbm_me_cl_add()
375 static int mei_hbm_add_cl_resp(struct mei_device *dev, u8 addr, u8 status) in mei_hbm_add_cl_resp() argument
382 dev_dbg(dev->dev, "adding client response\n"); in mei_hbm_add_cl_resp()
391 ret = mei_hbm_write_message(dev, &mei_hdr, &resp); in mei_hbm_add_cl_resp()
393 dev_err(dev->dev, "add client response write failed: ret = %d\n", in mei_hbm_add_cl_resp()
406 static int mei_hbm_fw_add_cl_req(struct mei_device *dev, in mei_hbm_fw_add_cl_req() argument
415 ret = mei_hbm_me_cl_add(dev, (struct hbm_props_response *)req); in mei_hbm_fw_add_cl_req()
419 if (dev->dev_state == MEI_DEV_ENABLED) in mei_hbm_fw_add_cl_req()
420 schedule_work(&dev->bus_rescan_work); in mei_hbm_fw_add_cl_req()
422 return mei_hbm_add_cl_resp(dev, req->me_addr, status); in mei_hbm_fw_add_cl_req()
434 int mei_hbm_cl_notify_req(struct mei_device *dev, in mei_hbm_cl_notify_req() argument
448 ret = mei_hbm_write_message(dev, &mei_hdr, &req); in mei_hbm_cl_notify_req()
450 dev_err(dev->dev, "notify request failed: ret = %d\n", ret); in mei_hbm_cl_notify_req()
479 static void mei_hbm_cl_notify_start_res(struct mei_device *dev, in mei_hbm_cl_notify_start_res() argument
486 cl_dbg(dev, cl, "hbm: notify start response status=%d\n", rs->status); in mei_hbm_cl_notify_start_res()
505 static void mei_hbm_cl_notify_stop_res(struct mei_device *dev, in mei_hbm_cl_notify_stop_res() argument
512 cl_dbg(dev, cl, "hbm: notify stop response status=%d\n", rs->status); in mei_hbm_cl_notify_stop_res()
530 static void mei_hbm_cl_notify(struct mei_device *dev, in mei_hbm_cl_notify() argument
535 cl = mei_hbm_cl_find_by_cmd(dev, cmd); in mei_hbm_cl_notify()
548 static int mei_hbm_prop_req(struct mei_device *dev, unsigned long start_idx) in mei_hbm_prop_req() argument
556 addr = find_next_bit(dev->me_clients_map, MEI_CLIENTS_MAX, start_idx); in mei_hbm_prop_req()
560 dev->hbm_state = MEI_HBM_STARTED; in mei_hbm_prop_req()
561 mei_host_client_init(dev); in mei_hbm_prop_req()
573 ret = mei_hbm_write_message(dev, &mei_hdr, &prop_req); in mei_hbm_prop_req()
575 dev_err(dev->dev, "properties request write failed: ret = %d\n", in mei_hbm_prop_req()
580 dev->init_clients_timer = MEI_CLIENTS_INIT_TIMEOUT; in mei_hbm_prop_req()
581 mei_schedule_stall_timer(dev); in mei_hbm_prop_req()
595 int mei_hbm_pg(struct mei_device *dev, u8 pg_cmd) in mei_hbm_pg() argument
602 if (!dev->hbm_f_pg_supported) in mei_hbm_pg()
610 ret = mei_hbm_write_message(dev, &mei_hdr, &req); in mei_hbm_pg()
612 dev_err(dev->dev, "power gate command write failed.\n"); in mei_hbm_pg()
624 static int mei_hbm_stop_req(struct mei_device *dev) in mei_hbm_stop_req() argument
636 return mei_hbm_write_message(dev, &mei_hdr, &req); in mei_hbm_stop_req()
647 int mei_hbm_cl_flow_control_req(struct mei_device *dev, struct mei_cl *cl) in mei_hbm_cl_flow_control_req() argument
651 cl_dbg(dev, cl, "sending flow control\n"); in mei_hbm_cl_flow_control_req()
652 return mei_hbm_cl_write(dev, cl, MEI_FLOW_CONTROL_CMD, in mei_hbm_cl_flow_control_req()
664 static int mei_hbm_add_single_tx_flow_ctrl_creds(struct mei_device *dev, in mei_hbm_add_single_tx_flow_ctrl_creds() argument
670 me_cl = mei_me_cl_by_id(dev, fctrl->me_addr); in mei_hbm_add_single_tx_flow_ctrl_creds()
672 dev_err(dev->dev, "no such me client %d\n", fctrl->me_addr); in mei_hbm_add_single_tx_flow_ctrl_creds()
682 dev_dbg(dev->dev, "recv flow ctrl msg ME %d (single) creds = %d.\n", in mei_hbm_add_single_tx_flow_ctrl_creds()
697 static void mei_hbm_cl_tx_flow_ctrl_creds_res(struct mei_device *dev, in mei_hbm_cl_tx_flow_ctrl_creds_res() argument
704 mei_hbm_add_single_tx_flow_ctrl_creds(dev, fctrl); in mei_hbm_cl_tx_flow_ctrl_creds_res()
708 cl = mei_hbm_cl_find_by_cmd(dev, fctrl); in mei_hbm_cl_tx_flow_ctrl_creds_res()
711 cl_dbg(dev, cl, "flow control creds = %d.\n", in mei_hbm_cl_tx_flow_ctrl_creds_res()
725 int mei_hbm_cl_disconnect_req(struct mei_device *dev, struct mei_cl *cl) in mei_hbm_cl_disconnect_req() argument
729 return mei_hbm_cl_write(dev, cl, CLIENT_DISCONNECT_REQ_CMD, in mei_hbm_cl_disconnect_req()
741 int mei_hbm_cl_disconnect_rsp(struct mei_device *dev, struct mei_cl *cl) in mei_hbm_cl_disconnect_rsp() argument
745 return mei_hbm_cl_write(dev, cl, CLIENT_DISCONNECT_RES_CMD, in mei_hbm_cl_disconnect_rsp()
757 static void mei_hbm_cl_disconnect_res(struct mei_device *dev, struct mei_cl *cl, in mei_hbm_cl_disconnect_res() argument
763 cl_dbg(dev, cl, "hbm: disconnect response status=%d\n", rs->status); in mei_hbm_cl_disconnect_res()
778 int mei_hbm_cl_connect_req(struct mei_device *dev, struct mei_cl *cl) in mei_hbm_cl_connect_req() argument
782 return mei_hbm_cl_write(dev, cl, CLIENT_CONNECT_REQ_CMD, in mei_hbm_cl_connect_req()
794 static void mei_hbm_cl_connect_res(struct mei_device *dev, struct mei_cl *cl, in mei_hbm_cl_connect_res() argument
800 cl_dbg(dev, cl, "hbm: connect response status=%s\n", in mei_hbm_cl_connect_res()
808 mei_me_cl_del(dev, cl->me_cl); in mei_hbm_cl_connect_res()
809 if (dev->dev_state == MEI_DEV_ENABLED) in mei_hbm_cl_connect_res()
810 schedule_work(&dev->bus_rescan_work); in mei_hbm_cl_connect_res()
824 static void mei_hbm_cl_res(struct mei_device *dev, in mei_hbm_cl_res() argument
832 list_for_each_entry_safe(cb, next, &dev->ctrl_rd_list, list) { in mei_hbm_cl_res()
850 mei_hbm_cl_connect_res(dev, cl, rs); in mei_hbm_cl_res()
853 mei_hbm_cl_disconnect_res(dev, cl, rs); in mei_hbm_cl_res()
856 mei_hbm_cl_notify_start_res(dev, cl, rs); in mei_hbm_cl_res()
859 mei_hbm_cl_notify_stop_res(dev, cl, rs); in mei_hbm_cl_res()
879 static int mei_hbm_fw_disconnect_req(struct mei_device *dev, in mei_hbm_fw_disconnect_req() argument
885 cl = mei_hbm_cl_find_by_cmd(dev, disconnect_req); in mei_hbm_fw_disconnect_req()
887 cl_warn(dev, cl, "fw disconnect request received\n"); in mei_hbm_fw_disconnect_req()
906 static int mei_hbm_pg_enter_res(struct mei_device *dev) in mei_hbm_pg_enter_res() argument
908 if (mei_pg_state(dev) != MEI_PG_OFF || in mei_hbm_pg_enter_res()
909 dev->pg_event != MEI_PG_EVENT_WAIT) { in mei_hbm_pg_enter_res()
910 dev_err(dev->dev, "hbm: pg entry response: state mismatch [%s, %d]\n", in mei_hbm_pg_enter_res()
911 mei_pg_state_str(mei_pg_state(dev)), dev->pg_event); in mei_hbm_pg_enter_res()
915 dev->pg_event = MEI_PG_EVENT_RECEIVED; in mei_hbm_pg_enter_res()
916 wake_up(&dev->wait_pg); in mei_hbm_pg_enter_res()
926 void mei_hbm_pg_resume(struct mei_device *dev) in mei_hbm_pg_resume() argument
928 pm_request_resume(dev->dev); in mei_hbm_pg_resume()
939 static int mei_hbm_pg_exit_res(struct mei_device *dev) in mei_hbm_pg_exit_res() argument
941 if (mei_pg_state(dev) != MEI_PG_ON || in mei_hbm_pg_exit_res()
942 (dev->pg_event != MEI_PG_EVENT_WAIT && in mei_hbm_pg_exit_res()
943 dev->pg_event != MEI_PG_EVENT_IDLE)) { in mei_hbm_pg_exit_res()
944 dev_err(dev->dev, "hbm: pg exit response: state mismatch [%s, %d]\n", in mei_hbm_pg_exit_res()
945 mei_pg_state_str(mei_pg_state(dev)), dev->pg_event); in mei_hbm_pg_exit_res()
949 switch (dev->pg_event) { in mei_hbm_pg_exit_res()
951 dev->pg_event = MEI_PG_EVENT_RECEIVED; in mei_hbm_pg_exit_res()
952 wake_up(&dev->wait_pg); in mei_hbm_pg_exit_res()
960 dev->pg_event = MEI_PG_EVENT_RECEIVED; in mei_hbm_pg_exit_res()
961 mei_hbm_pg_resume(dev); in mei_hbm_pg_exit_res()
965 dev->pg_event); in mei_hbm_pg_exit_res()
978 static void mei_hbm_config_features(struct mei_device *dev) in mei_hbm_config_features() argument
981 dev->hbm_f_pg_supported = 0; in mei_hbm_config_features()
982 if (dev->version.major_version > HBM_MAJOR_VERSION_PGI) in mei_hbm_config_features()
983 dev->hbm_f_pg_supported = 1; in mei_hbm_config_features()
985 if (dev->version.major_version == HBM_MAJOR_VERSION_PGI && in mei_hbm_config_features()
986 dev->version.minor_version >= HBM_MINOR_VERSION_PGI) in mei_hbm_config_features()
987 dev->hbm_f_pg_supported = 1; in mei_hbm_config_features()
989 dev->hbm_f_dc_supported = 0; in mei_hbm_config_features()
990 if (dev->version.major_version >= HBM_MAJOR_VERSION_DC) in mei_hbm_config_features()
991 dev->hbm_f_dc_supported = 1; in mei_hbm_config_features()
993 dev->hbm_f_ie_supported = 0; in mei_hbm_config_features()
994 if (dev->version.major_version >= HBM_MAJOR_VERSION_IE) in mei_hbm_config_features()
995 dev->hbm_f_ie_supported = 1; in mei_hbm_config_features()
998 dev->hbm_f_dot_supported = 0; in mei_hbm_config_features()
999 if (dev->version.major_version >= HBM_MAJOR_VERSION_DOT) in mei_hbm_config_features()
1000 dev->hbm_f_dot_supported = 1; in mei_hbm_config_features()
1003 dev->hbm_f_ev_supported = 0; in mei_hbm_config_features()
1004 if (dev->version.major_version >= HBM_MAJOR_VERSION_EV) in mei_hbm_config_features()
1005 dev->hbm_f_ev_supported = 1; in mei_hbm_config_features()
1008 dev->hbm_f_fa_supported = 0; in mei_hbm_config_features()
1009 if (dev->version.major_version >= HBM_MAJOR_VERSION_FA) in mei_hbm_config_features()
1010 dev->hbm_f_fa_supported = 1; in mei_hbm_config_features()
1013 dev->hbm_f_os_supported = 0; in mei_hbm_config_features()
1014 if (dev->version.major_version >= HBM_MAJOR_VERSION_OS) in mei_hbm_config_features()
1015 dev->hbm_f_os_supported = 1; in mei_hbm_config_features()
1018 dev->hbm_f_dr_supported = 0; in mei_hbm_config_features()
1019 if (dev->version.major_version > HBM_MAJOR_VERSION_DR || in mei_hbm_config_features()
1020 (dev->version.major_version == HBM_MAJOR_VERSION_DR && in mei_hbm_config_features()
1021 dev->version.minor_version >= HBM_MINOR_VERSION_DR)) in mei_hbm_config_features()
1022 dev->hbm_f_dr_supported = 1; in mei_hbm_config_features()
1032 bool mei_hbm_version_is_supported(struct mei_device *dev) in mei_hbm_version_is_supported() argument
1034 return (dev->version.major_version < HBM_MAJOR_VERSION) || in mei_hbm_version_is_supported()
1035 (dev->version.major_version == HBM_MAJOR_VERSION && in mei_hbm_version_is_supported()
1036 dev->version.minor_version <= HBM_MINOR_VERSION); in mei_hbm_version_is_supported()
1048 int mei_hbm_dispatch(struct mei_device *dev, struct mei_msg_hdr *hdr) in mei_hbm_dispatch() argument
1062 BUG_ON(hdr->length >= sizeof(dev->rd_msg_buf)); in mei_hbm_dispatch()
1063 mei_read_slots(dev, dev->rd_msg_buf, hdr->length); in mei_hbm_dispatch()
1064 mei_msg = (struct mei_bus_message *)dev->rd_msg_buf; in mei_hbm_dispatch()
1070 if (dev->hbm_state == MEI_HBM_IDLE) { in mei_hbm_dispatch()
1071 dev_dbg(dev->dev, "hbm: state is idle ignore spurious messages\n"); in mei_hbm_dispatch()
1077 dev_dbg(dev->dev, "hbm: start: response message received.\n"); in mei_hbm_dispatch()
1079 dev->init_clients_timer = 0; in mei_hbm_dispatch()
1083 dev_dbg(dev->dev, "HBM VERSION: DRIVER=%02d:%02d DEVICE=%02d:%02d\n", in mei_hbm_dispatch()
1089 dev->version.major_version = HBM_MAJOR_VERSION; in mei_hbm_dispatch()
1090 dev->version.minor_version = HBM_MINOR_VERSION; in mei_hbm_dispatch()
1092 dev->version.major_version = in mei_hbm_dispatch()
1094 dev->version.minor_version = in mei_hbm_dispatch()
1098 if (!mei_hbm_version_is_supported(dev)) { in mei_hbm_dispatch()
1099 dev_warn(dev->dev, "hbm: start: version mismatch - stopping the driver.\n"); in mei_hbm_dispatch()
1101 dev->hbm_state = MEI_HBM_STOPPED; in mei_hbm_dispatch()
1102 if (mei_hbm_stop_req(dev)) { in mei_hbm_dispatch()
1103 dev_err(dev->dev, "hbm: start: failed to send stop request\n"); in mei_hbm_dispatch()
1109 mei_hbm_config_features(dev); in mei_hbm_dispatch()
1111 if (dev->dev_state != MEI_DEV_INIT_CLIENTS || in mei_hbm_dispatch()
1112 dev->hbm_state != MEI_HBM_STARTING) { in mei_hbm_dispatch()
1113 dev_err(dev->dev, "hbm: start: state mismatch, [%d, %d]\n", in mei_hbm_dispatch()
1114 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch()
1118 if (mei_hbm_enum_clients_req(dev)) { in mei_hbm_dispatch()
1119 dev_err(dev->dev, "hbm: start: failed to send enumeration request\n"); in mei_hbm_dispatch()
1123 wake_up(&dev->wait_hbm_start); in mei_hbm_dispatch()
1127 dev_dbg(dev->dev, "hbm: client connect response: message received.\n"); in mei_hbm_dispatch()
1128 mei_hbm_cl_res(dev, cl_cmd, MEI_FOP_CONNECT); in mei_hbm_dispatch()
1132 dev_dbg(dev->dev, "hbm: client disconnect response: message received.\n"); in mei_hbm_dispatch()
1133 mei_hbm_cl_res(dev, cl_cmd, MEI_FOP_DISCONNECT); in mei_hbm_dispatch()
1137 dev_dbg(dev->dev, "hbm: client flow control response: message received.\n"); in mei_hbm_dispatch()
1140 mei_hbm_cl_tx_flow_ctrl_creds_res(dev, fctrl); in mei_hbm_dispatch()
1144 dev_dbg(dev->dev, "hbm: power gate isolation entry response received\n"); in mei_hbm_dispatch()
1145 ret = mei_hbm_pg_enter_res(dev); in mei_hbm_dispatch()
1151 dev_dbg(dev->dev, "hbm: power gate isolation exit request received\n"); in mei_hbm_dispatch()
1152 ret = mei_hbm_pg_exit_res(dev); in mei_hbm_dispatch()
1158 dev_dbg(dev->dev, "hbm: properties response: message received.\n"); in mei_hbm_dispatch()
1160 dev->init_clients_timer = 0; in mei_hbm_dispatch()
1162 if (dev->dev_state != MEI_DEV_INIT_CLIENTS || in mei_hbm_dispatch()
1163 dev->hbm_state != MEI_HBM_CLIENT_PROPERTIES) { in mei_hbm_dispatch()
1164 dev_err(dev->dev, "hbm: properties response: state mismatch, [%d, %d]\n", in mei_hbm_dispatch()
1165 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch()
1172 dev_dbg(dev->dev, "hbm: properties response: %d CLIENT_NOT_FOUND\n", in mei_hbm_dispatch()
1175 dev_err(dev->dev, "hbm: properties response: wrong status = %d %s\n", in mei_hbm_dispatch()
1180 mei_hbm_me_cl_add(dev, props_res); in mei_hbm_dispatch()
1184 if (mei_hbm_prop_req(dev, props_res->me_addr + 1)) in mei_hbm_dispatch()
1190 dev_dbg(dev->dev, "hbm: enumeration response: message received\n"); in mei_hbm_dispatch()
1192 dev->init_clients_timer = 0; in mei_hbm_dispatch()
1195 BUILD_BUG_ON(sizeof(dev->me_clients_map) in mei_hbm_dispatch()
1197 memcpy(dev->me_clients_map, enum_res->valid_addresses, in mei_hbm_dispatch()
1200 if (dev->dev_state != MEI_DEV_INIT_CLIENTS || in mei_hbm_dispatch()
1201 dev->hbm_state != MEI_HBM_ENUM_CLIENTS) { in mei_hbm_dispatch()
1202 dev_err(dev->dev, "hbm: enumeration response: state mismatch, [%d, %d]\n", in mei_hbm_dispatch()
1203 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch()
1207 dev->hbm_state = MEI_HBM_CLIENT_PROPERTIES; in mei_hbm_dispatch()
1210 if (mei_hbm_prop_req(dev, 0)) in mei_hbm_dispatch()
1216 dev_dbg(dev->dev, "hbm: stop response: message received\n"); in mei_hbm_dispatch()
1218 dev->init_clients_timer = 0; in mei_hbm_dispatch()
1220 if (dev->hbm_state != MEI_HBM_STOPPED) { in mei_hbm_dispatch()
1221 dev_err(dev->dev, "hbm: stop response: state mismatch, [%d, %d]\n", in mei_hbm_dispatch()
1222 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch()
1226 dev->dev_state = MEI_DEV_POWER_DOWN; in mei_hbm_dispatch()
1227 dev_info(dev->dev, "hbm: stop response: resetting.\n"); in mei_hbm_dispatch()
1233 dev_dbg(dev->dev, "hbm: disconnect request: message received\n"); in mei_hbm_dispatch()
1236 mei_hbm_fw_disconnect_req(dev, disconnect_req); in mei_hbm_dispatch()
1240 dev_dbg(dev->dev, "hbm: stop request: message received\n"); in mei_hbm_dispatch()
1241 dev->hbm_state = MEI_HBM_STOPPED; in mei_hbm_dispatch()
1242 if (mei_hbm_stop_req(dev)) { in mei_hbm_dispatch()
1243 dev_err(dev->dev, "hbm: stop request: failed to send stop request\n"); in mei_hbm_dispatch()
1249 dev_dbg(dev->dev, "hbm: add client request received\n"); in mei_hbm_dispatch()
1254 if (dev->hbm_state <= MEI_HBM_ENUM_CLIENTS || in mei_hbm_dispatch()
1255 dev->hbm_state >= MEI_HBM_STOPPED) { in mei_hbm_dispatch()
1256 dev_err(dev->dev, "hbm: add client: state mismatch, [%d, %d]\n", in mei_hbm_dispatch()
1257 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch()
1261 ret = mei_hbm_fw_add_cl_req(dev, add_cl_req); in mei_hbm_dispatch()
1263 dev_err(dev->dev, "hbm: add client: failed to send response %d\n", in mei_hbm_dispatch()
1267 dev_dbg(dev->dev, "hbm: add client request processed\n"); in mei_hbm_dispatch()
1271 dev_dbg(dev->dev, "hbm: notify response received\n"); in mei_hbm_dispatch()
1272 mei_hbm_cl_res(dev, cl_cmd, notify_res_to_fop(cl_cmd)); in mei_hbm_dispatch()
1276 dev_dbg(dev->dev, "hbm: notification\n"); in mei_hbm_dispatch()
1277 mei_hbm_cl_notify(dev, cl_cmd); in mei_hbm_dispatch()