From a2ea5ff32c50bf9bfc944d1ffe7c111839301e70 Mon Sep 17 00:00:00 2001 From: Akshay Pandit Date: Wed, 7 Oct 2020 14:01:28 +0530 Subject: [PATCH] msm: ipa3: fix the unmap logic Ethenet driver npn phy address was same for UL/DL pipes, currently this address was unmapped during DL pipe disconnect where UL pipe still avtive, move the logic to do the unmamp to the last pipe disconnect. Signed-off-by: Skylar Chang --- drivers/platform/msm/ipa/ipa_v3/ipa_uc_ntn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/platform/msm/ipa/ipa_v3/ipa_uc_ntn.c b/drivers/platform/msm/ipa/ipa_v3/ipa_uc_ntn.c index 16dbc1412352..85a26d32c888 100644 --- a/drivers/platform/msm/ipa/ipa_v3/ipa_uc_ntn.c +++ b/drivers/platform/msm/ipa/ipa_v3/ipa_uc_ntn.c @@ -603,7 +603,7 @@ int ipa3_tear_down_uc_offload_pipes(int ipa_ep_idx_ul, } /* unmap the DL pipe */ - result = ipa3_smmu_map_uc_ntn_pipes(¶ms->dl, false, true); + result = ipa3_smmu_map_uc_ntn_pipes(¶ms->dl, false, false); if (result) { IPAERR("failed to unmap SMMU for DL %d\n", result); goto fail; @@ -624,7 +624,7 @@ int ipa3_tear_down_uc_offload_pipes(int ipa_ep_idx_ul, } /* unmap the UL pipe */ - result = ipa3_smmu_map_uc_ntn_pipes(¶ms->ul, false, false); + result = ipa3_smmu_map_uc_ntn_pipes(¶ms->ul, false, true); if (result) { IPAERR("failed to unmap SMMU for UL %d\n", result); goto fail;