diff options
| author | Mitchel Humpherys <mitchelh@codeaurora.org> | 2015-04-07 17:17:51 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-22 11:11:55 -0700 |
| commit | 2c1e73b58e6fc2c6c06a5e68445f0bfd11de6535 (patch) | |
| tree | 40701a3c18e9ba037fca8ed5e544f7fbe1d0c92d /include | |
| parent | 4e0702c06c68aeb1e99f811c026c3205a3888382 (diff) | |
iommu/arm-smmu: drop S2CR sanity check
An extra check was added in [3c8766d0c: "iommu/arm-smmu: Do not access
non-existing S2CR registers"] to make sure we didn't add stream IDs
greater than the maximum allowed value when stream matching is not
supported. That check was designed to happen at device tree parse time,
after probing the SMMU to get the maximum allowed SID value. However,
we've added support for clocks since that time, which are also parsed
from the device tree. So we can't probe the device to see what features
it supports until we parse the device tree so that we can enable clocks.
Fix this catch-22 by dropping the max stream ID value check. This won't
affect current MSM targets at all since they all support the stream
matching feature, so the sanity check was never applicable.
An alternate solution might be to do a multi-phase parse of the device
tree to pull out just the necessary configuration to power on the
SMMU (clocks, etc), then probe the device for features, then parse the
rest of the device tree (during which time we'd do this sanity check).
Change-Id: I679bbde96a4b8800da0c6d7a5a186d0fe7bd0d75
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
