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

Commit b71b7248 authored by Amir Levy's avatar Amir Levy
Browse files

msm: ipa: remove memory allocation for SMEM on APQ platform



On the APQ platform there is no need to allocate SMEM since
there is no local modem.

Acked-by: default avatarTal Gelbard <tgelbard@qti.qualcomm.com>
Change-Id: Ibba748a41ade4ac7421538517f12bdc0432b749f
Signed-off-by: default avatarAmir Levy <alevy@codeaurora.org>
parent a7d847f5
Loading
Loading
Loading
Loading
+28 −26
Original line number Diff line number Diff line
@@ -6651,6 +6651,7 @@ static int ipa_smmu_ap_cb_probe(struct device *dev)
		IPADBG("ipa q6 smem size = %u\n", ipa_smem_size);
	}

	if (ipa3_ctx->platform_type != IPA_PLAT_TYPE_APQ) {
		/* map SMEM memory for IPA table accesses */
		ret = qcom_smem_alloc(SMEM_MODEM,
			SMEM_IPA_FILTER_TABLE,
@@ -6683,6 +6684,7 @@ static int ipa_smmu_ap_cb_probe(struct device *dev)
		ipa3_iommu_map(cb->iommu_domain,
				iova_p, pa_p, size_p,
				IOMMU_READ | IOMMU_WRITE);
	}

	smmu_info.present[IPA_SMMU_CB_AP] = true;