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

Commit 17cb32c2 authored by Skylar Chang's avatar Skylar Chang
Browse files

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: default avatarSkylar Chang <chiaweic@codeaurora.org>
parent b246b866
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;