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

Commit 3c6b338d 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 f7c185c2
Loading
Loading
Loading
Loading
+32 −30
Original line number Diff line number Diff line
@@ -7626,6 +7626,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,
@@ -7658,6 +7659,7 @@ static int ipa_smmu_ap_cb_probe(struct device *dev)
				ipa3_iommu_map(cb->mapping->domain,
					iova_p, pa_p, size_p,
					IOMMU_READ | IOMMU_WRITE);
	}

	smmu_info.present[IPA_SMMU_CB_AP] = true;
	ipa3_ctx->pdev = dev;