linux/drivers/memory/tegra
Ashish Mhetre 4a23d0f981 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: fe3b082a6e ("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>
2023-12-06 11:22:24 +01:00
..
Kconfig memory: tegra30-emc: Print additional memory info 2022-01-27 10:40:34 +01:00
Makefile memory: tegra: Add Tegra234 support 2022-05-09 10:46:00 +02:00
mc.c iommu/tegra-gart: Remove tegra-gart 2023-09-25 11:40:54 +02:00
mc.h memory: tegra: Make CPU cluster BW request a multiple of MC channels 2023-05-16 12:11:01 +02:00
tegra20-emc.c memory: tegra20-emc: fix interconnect registration race 2023-03-13 21:13:48 +02:00
tegra20.c iommu/tegra-gart: Remove tegra-gart 2023-09-25 11:40:54 +02:00
tegra30-emc.c memory: Explicitly include correct DT includes 2023-07-25 22:09:37 +02:00
tegra30.c memory: Explicitly include correct DT includes 2023-07-25 22:09:37 +02:00
tegra114.c memory: tegra: Extract setup code into callback 2021-06-03 21:49:41 +02:00
tegra124-emc.c memory: tegra124-emc: fix interconnect registration race 2023-03-13 21:13:48 +02:00
tegra124.c memory: Explicitly include correct DT includes 2023-07-25 22:09:37 +02:00
tegra186-emc.c memory: tegra: Prefer octal over symbolic permissions 2023-07-25 22:09:36 +02:00
tegra186.c memory: tegra: Protect SID override call under CONFIG_IOMMU_API 2023-12-06 11:22:24 +01:00
tegra194.c memory: tegra: Add dummy implementation on Tegra194 2023-07-10 12:04:56 +02:00
tegra210-emc-cc-r21021.c memory: tegra: read values from correct device 2023-04-10 18:55:55 +02:00
tegra210-emc-core.c memory: Explicitly include correct DT includes 2023-07-25 22:09:37 +02:00
tegra210-emc-table.c memory: tegra: remove redundant variable initialization 2023-03-22 18:48:46 +01:00
tegra210-emc.h memory: tegra: Drop <linux/clk-provider.h> 2020-06-22 13:54:58 +02:00
tegra210-mc.h memory: tegra: Add EMC scaling support code for Tegra210 2020-06-22 13:54:57 +02:00
tegra210.c memory: tegra: Extract setup code into callback 2021-06-03 21:49:41 +02:00
tegra234.c Memory controller drivers for v6.7 2023-10-16 23:00:46 +02:00