From d2279699b6d2265e7ac73cfd021febb58506cb78 Mon Sep 17 00:00:00 2001 From: Michael Adisumarta Date: Thu, 17 Oct 2019 12:50:44 -0700 Subject: [PATCH] msm:ipa: stop the UL MHIP channels after probe This change is to stop uplink MHIP IPA tethering channels if there is no active tethering use case. Change-Id: I93fb5fb9b6b83c4a7c8cdc2b7ab8b1c1ff9ff7fb Acked-by: Jyothij Signed-off-by: Michael Adisumarta --- drivers/platform/msm/ipa/ipa_v3/ipa_mpm.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/platform/msm/ipa/ipa_v3/ipa_mpm.c b/drivers/platform/msm/ipa/ipa_v3/ipa_mpm.c index 379190850b86..91ec580e9f19 100644 --- a/drivers/platform/msm/ipa/ipa_v3/ipa_mpm.c +++ b/drivers/platform/msm/ipa/ipa_v3/ipa_mpm.c @@ -2309,8 +2309,12 @@ static int ipa_mpm_mhi_probe_cb(struct mhi_device *mhi_dev, } if (ul_prod != IPA_CLIENT_MAX) { /* No teth started yet, disable UL channel */ - ipa_mpm_start_stop_mhip_chan(IPA_MPM_MHIP_CHAN_UL, - probe_id, MPM_MHIP_STOP); + ret = ipa3_stop_gsi_channel(ipa_ep_idx); + if (ret) { + IPA_MPM_ERR("MHIP Stop channel err = %d\n", + ret); + goto fail_stop_channel; + } } if (is_acted) ipa_mpm_vote_unvote_pcie_clk(CLK_OFF, probe_id, true, @@ -2349,6 +2353,7 @@ static int ipa_mpm_mhi_probe_cb(struct mhi_device *mhi_dev, fail_gsi_setup: fail_start_channel: +fail_stop_channel: fail_smmu: if (ipa_mpm_ctx->dev_info.ipa_smmu_enabled) IPA_MPM_DBG("SMMU failed\n");