iommu/arm-smmu: Do not access non-existing S2CR registers
commit3c8766d0ca9618a406b0a1ecc29147820e93d984
authorOlav Haugan <ohaugan@codeaurora.org>
Sat, 23 Aug 2014 00:12:32 +0000 (22 17:12 -0700)
committerWill Deacon <will.deacon@arm.com>
Tue, 2 Sep 2014 09:04:42 +0000 (2 10:04 +0100)
treecdfa0bbf78fcc231e758ea9cd0d097bb2468b107
parent43b412bedb782e27a8771b61870dd45a24975266
iommu/arm-smmu: Do not access non-existing S2CR registers

The number of S2CR registers is not properly set when stream
matching is not supported. Fix this and add check that we do not try to
access outside of the number of S2CR regisrers.

Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
[will: added missing NUMSIDB_* definitions]
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/arm-smmu.c