diff options
author | Ashish Mhetre <amhetre@nvidia.com> | 2023-12-05 07:00:45 +0100 |
---|---|---|
committer | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2023-12-06 11:22:24 +0100 |
commit | 4a23d0f9814c38308dc82b6dbc466666a400b27d (patch) | |
tree | f2110d6c88adf6cf7623e7d7502233e71930229c /include/soc | |
parent | memory: tegra: Skip SID programming if SID registers aren't set (diff) | |
download | linux-4a23d0f9814c38308dc82b6dbc466666a400b27d.tar.xz linux-4a23d0f9814c38308dc82b6dbc466666a400b27d.zip |
memory: tegra: Protect SID override call under CONFIG_IOMMU_API
tegra186_mc_client_sid_override() is protected under CONFIG_IOMMU_API.
Call to this function is being made from tegra186_mc_resume() without
any protection which is leading to build failure when CONFIG_IOMMU_API
is not set. Fix this by protecting SID override function call from
tegra186_mc_resume() under CONFIG_IOMMU_API.
Fixes: fe3b082a6eb8 ("memory: tegra: Add SID override programming for MC clients")
Signed-off-by: Ashish Mhetre <amhetre@nvidia.com>
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Link: https://lore.kernel.org/r/20231205060045.7985-1-amhetre@nvidia.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Diffstat (limited to 'include/soc')
0 files changed, 0 insertions, 0 deletions