Loading drivers/soc/qcom/icnss_qmi.c +15 −11 Original line number Diff line number Diff line Loading @@ -39,8 +39,10 @@ module_param(qmi_timeout, ulong, 0600); #else #define WLFW_TIMEOUT_MS 10000 #endif #define WLFW_SERVICE_INS_ID_V01 0 #define WLFW_CLIENT_ID 0x4b4e454c #define QMI_ERR_PLAT_CCPM_CLK_INIT_FAILED 0x77 #ifdef CONFIG_ICNSS_DEBUG bool ignore_fw_timeout; Loading Loading @@ -137,7 +139,7 @@ int wlfw_msa_mem_info_send_sync_msg(struct icnss_priv *priv) if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { icnss_pr_err("QMI MSA Mem info request rejected, result:%d error:%d\n", resp.resp.result, resp.resp.error); ret = resp.resp.result; ret = -resp.resp.result; goto out; } Loading Loading @@ -210,7 +212,7 @@ int wlfw_msa_ready_send_sync_msg(struct icnss_priv *priv) if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { icnss_pr_err("QMI MSA ready request rejected: result:%d error:%d\n", resp.resp.result, resp.resp.error); ret = resp.resp.result; ret = -resp.resp.result; goto out; } priv->stats.msa_ready_resp++; Loading Loading @@ -275,7 +277,7 @@ int wlfw_ind_register_send_sync_msg(struct icnss_priv *priv) if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { icnss_pr_err("QMI indication register request rejected, resut:%d error:%d\n", resp.resp.result, resp.resp.error); ret = resp.resp.result; ret = -resp.resp.result; goto out; } priv->stats.ind_register_resp++; Loading Loading @@ -322,7 +324,9 @@ int wlfw_cap_send_sync_msg(struct icnss_priv *priv) if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { icnss_pr_err("QMI capability request rejected, result:%d error:%d\n", resp.resp.result, resp.resp.error); ret = resp.resp.result; ret = -resp.resp.result; if (resp.resp.error == QMI_ERR_PLAT_CCPM_CLK_INIT_FAILED) icnss_pr_err("RF card Not present"); goto out; } Loading Loading @@ -413,7 +417,7 @@ int wlfw_wlan_mode_send_sync_msg(struct icnss_priv *priv, if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { icnss_pr_err("QMI mode request rejected, mode:%d result:%d error:%d\n", mode, resp.resp.result, resp.resp.error); ret = resp.resp.result; ret = -resp.resp.result; goto out; } priv->stats.mode_resp++; Loading Loading @@ -464,7 +468,7 @@ int wlfw_wlan_cfg_send_sync_msg(struct icnss_priv *priv, if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { icnss_pr_err("QMI config request rejected, result:%d error:%d\n", resp.resp.result, resp.resp.error); ret = resp.resp.result; ret = -resp.resp.result; goto out; } priv->stats.cfg_resp++; Loading Loading @@ -517,7 +521,7 @@ int wlfw_ini_send_sync_msg(struct icnss_priv *priv, uint8_t fw_log_mode) if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { icnss_pr_err("QMI INI request rejected, fw_log_mode:%d result:%d error:%d\n", fw_log_mode, resp.resp.result, resp.resp.error); ret = resp.resp.result; ret = -resp.resp.result; goto out; } priv->stats.ini_resp++; Loading Loading @@ -577,7 +581,7 @@ int wlfw_athdiag_read_send_sync_msg(struct icnss_priv *priv, if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { icnss_pr_err("QMI athdiag read request rejected, result:%d error:%d\n", resp->resp.result, resp->resp.error); ret = resp->resp.result; ret = -resp->resp.result; goto out; } Loading Loading @@ -643,7 +647,7 @@ int wlfw_athdiag_write_send_sync_msg(struct icnss_priv *priv, if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { icnss_pr_err("QMI athdiag write request rejected, result:%d error:%d\n", resp.resp.result, resp.resp.error); ret = resp.resp.result; ret = -resp.resp.result; goto out; } out: Loading Loading @@ -739,7 +743,7 @@ int wlfw_rejuvenate_ack_send_sync_msg(struct icnss_priv *priv) if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { icnss_pr_err("QMI rejuvenate ack request rejected, result:%d error %d\n", resp.resp.result, resp.resp.error); ret = resp.resp.result; ret = -resp.resp.result; goto out; } priv->stats.rejuvenate_ack_resp++; Loading Loading @@ -800,7 +804,7 @@ int wlfw_dynamic_feature_mask_send_sync_msg(struct icnss_priv *priv, if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { icnss_pr_err("QMI dynamic feature mask request rejected, result:%d error %d\n", resp.resp.result, resp.resp.error); ret = resp.resp.result; ret = -resp.resp.result; goto out; } Loading Loading
drivers/soc/qcom/icnss_qmi.c +15 −11 Original line number Diff line number Diff line Loading @@ -39,8 +39,10 @@ module_param(qmi_timeout, ulong, 0600); #else #define WLFW_TIMEOUT_MS 10000 #endif #define WLFW_SERVICE_INS_ID_V01 0 #define WLFW_CLIENT_ID 0x4b4e454c #define QMI_ERR_PLAT_CCPM_CLK_INIT_FAILED 0x77 #ifdef CONFIG_ICNSS_DEBUG bool ignore_fw_timeout; Loading Loading @@ -137,7 +139,7 @@ int wlfw_msa_mem_info_send_sync_msg(struct icnss_priv *priv) if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { icnss_pr_err("QMI MSA Mem info request rejected, result:%d error:%d\n", resp.resp.result, resp.resp.error); ret = resp.resp.result; ret = -resp.resp.result; goto out; } Loading Loading @@ -210,7 +212,7 @@ int wlfw_msa_ready_send_sync_msg(struct icnss_priv *priv) if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { icnss_pr_err("QMI MSA ready request rejected: result:%d error:%d\n", resp.resp.result, resp.resp.error); ret = resp.resp.result; ret = -resp.resp.result; goto out; } priv->stats.msa_ready_resp++; Loading Loading @@ -275,7 +277,7 @@ int wlfw_ind_register_send_sync_msg(struct icnss_priv *priv) if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { icnss_pr_err("QMI indication register request rejected, resut:%d error:%d\n", resp.resp.result, resp.resp.error); ret = resp.resp.result; ret = -resp.resp.result; goto out; } priv->stats.ind_register_resp++; Loading Loading @@ -322,7 +324,9 @@ int wlfw_cap_send_sync_msg(struct icnss_priv *priv) if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { icnss_pr_err("QMI capability request rejected, result:%d error:%d\n", resp.resp.result, resp.resp.error); ret = resp.resp.result; ret = -resp.resp.result; if (resp.resp.error == QMI_ERR_PLAT_CCPM_CLK_INIT_FAILED) icnss_pr_err("RF card Not present"); goto out; } Loading Loading @@ -413,7 +417,7 @@ int wlfw_wlan_mode_send_sync_msg(struct icnss_priv *priv, if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { icnss_pr_err("QMI mode request rejected, mode:%d result:%d error:%d\n", mode, resp.resp.result, resp.resp.error); ret = resp.resp.result; ret = -resp.resp.result; goto out; } priv->stats.mode_resp++; Loading Loading @@ -464,7 +468,7 @@ int wlfw_wlan_cfg_send_sync_msg(struct icnss_priv *priv, if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { icnss_pr_err("QMI config request rejected, result:%d error:%d\n", resp.resp.result, resp.resp.error); ret = resp.resp.result; ret = -resp.resp.result; goto out; } priv->stats.cfg_resp++; Loading Loading @@ -517,7 +521,7 @@ int wlfw_ini_send_sync_msg(struct icnss_priv *priv, uint8_t fw_log_mode) if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { icnss_pr_err("QMI INI request rejected, fw_log_mode:%d result:%d error:%d\n", fw_log_mode, resp.resp.result, resp.resp.error); ret = resp.resp.result; ret = -resp.resp.result; goto out; } priv->stats.ini_resp++; Loading Loading @@ -577,7 +581,7 @@ int wlfw_athdiag_read_send_sync_msg(struct icnss_priv *priv, if (resp->resp.result != QMI_RESULT_SUCCESS_V01) { icnss_pr_err("QMI athdiag read request rejected, result:%d error:%d\n", resp->resp.result, resp->resp.error); ret = resp->resp.result; ret = -resp->resp.result; goto out; } Loading Loading @@ -643,7 +647,7 @@ int wlfw_athdiag_write_send_sync_msg(struct icnss_priv *priv, if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { icnss_pr_err("QMI athdiag write request rejected, result:%d error:%d\n", resp.resp.result, resp.resp.error); ret = resp.resp.result; ret = -resp.resp.result; goto out; } out: Loading Loading @@ -739,7 +743,7 @@ int wlfw_rejuvenate_ack_send_sync_msg(struct icnss_priv *priv) if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { icnss_pr_err("QMI rejuvenate ack request rejected, result:%d error %d\n", resp.resp.result, resp.resp.error); ret = resp.resp.result; ret = -resp.resp.result; goto out; } priv->stats.rejuvenate_ack_resp++; Loading Loading @@ -800,7 +804,7 @@ int wlfw_dynamic_feature_mask_send_sync_msg(struct icnss_priv *priv, if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { icnss_pr_err("QMI dynamic feature mask request rejected, result:%d error %d\n", resp.resp.result, resp.resp.error); ret = resp.resp.result; ret = -resp.resp.result; goto out; } Loading