Merge "msm: IPA: mhi_proxy: correct the return for mhi unvote on ssr"

This commit is contained in:
qctecmdr 2019-09-18 02:51:11 -07:00 • committed by Gerrit - the friendly Code Review server
commit 3adfbb92f7
2 changed files with 12 additions and 1 deletions

View file

@ -610,6 +610,17 @@ struct ipa_mhi_clk_vote_resp_msg_v01
resp->resp.error = IPA_QMI_ERR_INCOMPATIBLE_STATE_V01;
mutex_lock(&imp_ctx->mutex);
/*
* returning success for clock unvote request - since it could
* be 5G modem SSR scenario where clocks are already OFF.
*/
if (!vote && imp_ctx->state == IMP_INVALID) {
IMP_DBG("Unvote in Invalid state, no op for clock unvote\n");
mutex_unlock(&imp_ctx->mutex);
return resp;
}
if (imp_ctx->state != IMP_STARTED) {
IMP_ERR("unexpected vote when in state %d\n", imp_ctx->state);
mutex_unlock(&imp_ctx->mutex);

View file

@ -388,7 +388,7 @@ static void ipa3_handle_mhi_vote_req(struct qmi_handle *qmi_handle,
} else {
resp = imp_handle_vote_req(vote_req->mhi_vote);
if (!resp) {
IPAWANERR("imp handle allocate channel req fails");
IPAWANERR("imp handle vote req fails\n");
return;
}
IPAWANDBG("start sending QMI_IPA_MHI_CLK_VOTE_RESP_V01\n");