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.

Change-Id: I697edb844b8134d2a1d52e3c2bcfd0a7066edb2f
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
tirimbino
Skylar Chang 4 years ago
parent b246b8666d
commit 17cb32c226
  1. 4
      drivers/platform/msm/ipa/ipa_v3/ipa_uc_ntn.c

@ -606,7 +606,7 @@ int ipa3_tear_down_uc_offload_pipes(int ipa_ep_idx_ul,
}
/* unmap the DL pipe */
result = ipa3_smmu_map_uc_ntn_pipes(&params->dl, false, true);
result = ipa3_smmu_map_uc_ntn_pipes(&params->dl, false, false);
if (result) {
IPAERR("failed to unmap SMMU for DL %d\n", result);
goto fail;
@ -627,7 +627,7 @@ int ipa3_tear_down_uc_offload_pipes(int ipa_ep_idx_ul,
}
/* unmap the UL pipe */
result = ipa3_smmu_map_uc_ntn_pipes(&params->ul, false, false);
result = ipa3_smmu_map_uc_ntn_pipes(&params->ul, false, true);
if (result) {
IPAERR("failed to unmap SMMU for UL %d\n", result);
goto fail;

Loading…
Cancel
Save