summaryrefslogtreecommitdiff
path: root/drivers/iommu/mtk_iommu.c
diff options
context:
space:
mode:
authorRobin Murphy <robin.murphy@arm.com>2016-09-12 19:13:48 +0300
committerWill Deacon <will.deacon@arm.com>2016-09-16 11:34:18 +0300
commit21174240e4f4439bb8ed6c116cdbdc03eba2126e (patch)
tree2498b0d9666a2d8abec99731efc42cc42039bd31 /drivers/iommu/mtk_iommu.c
parent95fa99aa402ad516ec825057a168f395ece39a2e (diff)
downloadlinux-21174240e4f4439bb8ed6c116cdbdc03eba2126e.tar.xz
iommu/arm-smmu: Handle stream IDs more dynamically
Rather than assuming fixed worst-case values for stream IDs and SMR masks, keep track of whatever implemented bits the hardware actually reports. This also obviates the slightly questionable validation of SMR fields in isolation - rather than aborting the whole SMMU probe for a hardware configuration which is still architecturally valid, we can simply refuse masters later if they try to claim an unrepresentable ID or mask (which almost certainly implies a DT error anyway). Acked-by: Will Deacon <will.deacon@arm.com> Tested-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Signed-off-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'drivers/iommu/mtk_iommu.c')
0 files changed, 0 insertions, 0 deletions