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

No differences found