Browse Source

msm: ipa: fix to MHIP LPM mode

There is no requirement to hold a vote for MHI device node
once the HW path is setup as this will block AP to go to
suspend state. Make changes to not hold MHI device vote
and only vote for PCIe link.

Change-Id: I2edf46ed44210c0f6f84375ad0f4d8522e4153c9
Signed-off-by: Chaitanya Pratapa <[email protected]>
Chaitanya Pratapa 4 years ago
parent
commit
1dd8898b3c
1 changed files with 0 additions and 3 deletions
  1. 0 3
      drivers/platform/msm/ipa/ipa_v3/ipa_mpm.c

+ 0 - 3
drivers/platform/msm/ipa/ipa_v3/ipa_mpm.c

@@ -1531,8 +1531,6 @@ static int ipa_mpm_vote_unvote_pcie_clk(enum ipa_mpm_clk_vote_type vote,
 	if (vote == CLK_ON) {
 		#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 10, 0))
 		pm_runtime_get_sync(ipa_mpm_ctx->mhi_parent_dev);
-		result = mhi_device_get_sync(
-			ipa_mpm_ctx->md[probe_id].mhi_dev);
 		#else
 		result = mhi_device_get_sync(
 			ipa_mpm_ctx->md[probe_id].mhi_dev,
@@ -1559,7 +1557,6 @@ static int ipa_mpm_vote_unvote_pcie_clk(enum ipa_mpm_clk_vote_type vote,
 			return 0;
 		}
 		#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 10, 0))
-		mhi_device_put(ipa_mpm_ctx->md[probe_id].mhi_dev);
 		pm_runtime_put(ipa_mpm_ctx->mhi_parent_dev);
 		#else
 		mhi_device_put(ipa_mpm_ctx->md[probe_id].mhi_dev,