From dbdffe3ff18471658e3a401eae969413d5b93e90 Mon Sep 17 00:00:00 2001 From: Bojun Pan Date: Thu, 17 Oct 2019 14:40:58 -0700 Subject: [PATCH] msm: IPA: mhi_proxy: correct the mhi vote for both bus and device There is a recent MHI API change to add flexibility to do either bus and device, but the change were applied to cv2 target mistakenly and get exposed due to Android Q update. The fix here is to correct the mhi vote for both bus/device. Change-Id: I9803d1aeb80952c33503d0fd7adb343a22cf6d4b Signed-off-by: Bojun Pan --- drivers/platform/msm/ipa/ipa_v3/ipa_mhi_proxy.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/platform/msm/ipa/ipa_v3/ipa_mhi_proxy.c b/drivers/platform/msm/ipa/ipa_v3/ipa_mhi_proxy.c index b768750ac515..18cc101ec117 100644 --- a/drivers/platform/msm/ipa/ipa_v3/ipa_mhi_proxy.c +++ b/drivers/platform/msm/ipa/ipa_v3/ipa_mhi_proxy.c @@ -641,7 +641,8 @@ struct ipa_mhi_clk_vote_resp_msg_v01 * executed from mhi context. */ if (vote) { - ret = mhi_device_get_sync(imp_ctx->md.mhi_dev, MHI_VOTE_BUS); + ret = mhi_device_get_sync(imp_ctx->md.mhi_dev, + MHI_VOTE_BUS | MHI_VOTE_DEVICE); if (ret) { IMP_ERR("mhi_sync_get failed %d\n", ret); resp->resp.result = IPA_QMI_RESULT_FAILURE_V01; @@ -651,7 +652,8 @@ struct ipa_mhi_clk_vote_resp_msg_v01 return resp; } } else { - mhi_device_put(imp_ctx->md.mhi_dev, MHI_VOTE_BUS); + mhi_device_put(imp_ctx->md.mhi_dev, + MHI_VOTE_BUS | MHI_VOTE_DEVICE); } mutex_lock(&imp_ctx->mutex);