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

Commit 8d9b9e32 authored by Mitchel Humpherys's avatar Mitchel Humpherys Committed by Matt Wagantall
Browse files

iommu/arm-smmu: allow DOMAIN_ATTR_COHERENT_HTW_DISABLE to be cleared



Currently there's no way to clear DOMAIN_ATTR_COHERENT_HTW_DISABLE=0 if
you've ever set it.  Fix this.

Change-Id: I10d3bb2f72a94b2b91d4a0500e0e2d9462efcf36
Signed-off-by: default avatarMitchel Humpherys <mitchelh@codeaurora.org>
parent fdabb795
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2013,6 +2013,9 @@ static int arm_smmu_domain_set_attr(struct iommu_domain *domain,
		if (htw_disable)
			smmu_domain->attributes |=
				(1 << DOMAIN_ATTR_COHERENT_HTW_DISABLE);
		else
			smmu_domain->attributes &=
				~(1 << DOMAIN_ATTR_COHERENT_HTW_DISABLE);
		return 0;
	}
	default: