mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
ANDROID: iommu: Kconfig: Make ARM_SMMU depend on QCOM_SCM || !QCOM_SCM
The arm-smmu-qcom code calls qcom_scm_qsmmu500_wait_safe_toggle().
Since the QCOM_SCM config can now be set as a module, this
requires the ARM_SMMU also be a module in that case, so make
the dependency explicit in the Kconfig.
This is done via the non-intuitive "depends on QCOM_SCM || !QCOM_SCM"
Kconfig syntax, which basically ensures that QCOM_SCM isn't
configured as a module if ARM_SMMU is built in.
Fixes: 6a1652effd ("ANDROID: firmware: QCOM_SCM: Allow qcom_scm driver to be loadable as a permenent module")
Signed-off-by: John Stultz <john.stultz@linaro.org>
Change-Id: I580e65e3df85bfbda2af5c54a1a068f6de7d27ee
This commit is contained in:
@@ -372,6 +372,7 @@ config SPAPR_TCE_IOMMU
|
||||
config ARM_SMMU
|
||||
tristate "ARM Ltd. System MMU (SMMU) Support"
|
||||
depends on (ARM64 || ARM || (COMPILE_TEST && !GENERIC_ATOMIC64)) && MMU
|
||||
depends on QCOM_SCM || !QCOM_SCM #if QCOM_SCM=m this can't be =y
|
||||
select IOMMU_API
|
||||
select IOMMU_IO_PGTABLE_LPAE
|
||||
select ARM_DMA_USE_IOMMU if ARM
|
||||
|
||||
Reference in New Issue
Block a user