Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d57d8ac8 authored by Bojun Pan's avatar Bojun Pan Committed by Gerrit - the friendly Code Review server
Browse files

msm: IPA: error code change for mhi state not expected



Send IPA_QMI_ERR_INCOMPATIBLE_STATE_V01 if Q6 have a vote request but mhi
driver state is not in expected state.

Change-Id: I175bca0828892d9da6584a046f51c26a0620af1b
Signed-off-by: default avatarBojun Pan <bojunp@codeaurora.org>
parent 75d4a367
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -613,7 +613,7 @@ struct ipa_mhi_clk_vote_resp_msg_v01
	IMP_DBG_LOW("vote %d\n", vote);
	IMP_DBG_LOW("vote %d\n", vote);
	memset(resp, 0, sizeof(struct ipa_mhi_clk_vote_resp_msg_v01));
	memset(resp, 0, sizeof(struct ipa_mhi_clk_vote_resp_msg_v01));
	resp->resp.result = IPA_QMI_RESULT_FAILURE_V01;
	resp->resp.result = IPA_QMI_RESULT_FAILURE_V01;
	resp->resp.error = IPA_QMI_ERR_INTERNAL_V01;
	resp->resp.error = IPA_QMI_ERR_INCOMPATIBLE_STATE_V01;


	mutex_lock(&imp_ctx->mutex);
	mutex_lock(&imp_ctx->mutex);
	if (imp_ctx->state != IMP_STARTED) {
	if (imp_ctx->state != IMP_STARTED) {