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

Commit bbef63cf authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: IPA: mhi_proxy: correct the mhi vote for both bus and device"

parents c2f7a35c 55dd5150
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -648,7 +648,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;
@@ -658,7 +659,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);