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: Mitchel Humpherys <mitchelh@codeaurora.org>
This commit is contained in:
parent
487d06ca4d
commit
b1dea0183f
1 changed files with 3 additions and 0 deletions
|
@ -2013,6 +2013,9 @@ static int arm_smmu_domain_set_attr(struct iommu_domain *domain,
|
||||||
if (htw_disable)
|
if (htw_disable)
|
||||||
smmu_domain->attributes |=
|
smmu_domain->attributes |=
|
||||||
(1 << DOMAIN_ATTR_COHERENT_HTW_DISABLE);
|
(1 << DOMAIN_ATTR_COHERENT_HTW_DISABLE);
|
||||||
|
else
|
||||||
|
smmu_domain->attributes &=
|
||||||
|
~(1 << DOMAIN_ATTR_COHERENT_HTW_DISABLE);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Add table
Reference in a new issue