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

Commit f7007673 authored by Patrick Daly's avatar Patrick Daly
Browse files

iommu: arm-smmu: Disable ATOS feature for the QSMMUV2 model



This feature is not working properly. Disable it until a fix is ready.

Change-Id: I5c73cd516c0f35d5c2bad7bc095f1dbe66c43ba5
Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
parent 5f300da0
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -3175,6 +3175,11 @@ static phys_addr_t qsmmuv2_iova_to_phys_hard(struct iommu_domain *domain,
	u32 sctlr, sctlr_orig, fsr;
	void __iomem *cb_base;

	if (smmu->model == QCOM_SMMUV2) {
		dev_err(smmu->dev, "ATOS support is disabled\n");
		return 0;
	}

	ret = arm_smmu_power_on(smmu_domain->smmu->pwr);
	if (ret)
		return ret;