iommu: Tidy up Kconfig for SoC IOMMUs
authorRobin Murphy <robin.murphy@arm.com>
Fri, 3 Jul 2020 16:03:19 +0000 (17:03 +0100)
committerJoerg Roedel <jroedel@suse.de>
Fri, 10 Jul 2020 12:55:03 +0000 (14:55 +0200)
commitb4ceb4a5359ed1c9ba4a20acf3a70d4bbead3248
treee1455fe4de3b9ceafb5f7cba304e45d67bd6693d
parent557d4bec009330567ce99692918abbe9c77528e0
iommu: Tidy up Kconfig for SoC IOMMUs

Wacky COMPILE_TEST dependencies based on who used to define
dev_archdata.iommu can go.

Dependencies on ARM or ARM64 already implied by the ARCH_* platform
selection can go.

The entire IOMMU_SUPPORT menu already depends on MMU, so those can go.

IOMMU_DMA is for the architecture's DMA API implementation to choose,
and its interface to IOMMU drivers is properly stubbed out if disabled,
so dependencies on or selections of that can go (AMD_IOMMU is the
current exception since the x86 drivers have to provide their own entire
dma_map_ops implementation).

Since commit ed6ccf10f24b ("dma-mapping: properly stub out the DMA API
for !CONFIG_HAS_DMA"), drivers which simply use the dma-mapping API
should not need to depend on HAS_DMA, so those can go.

And a long-dead option for code removed from the MSM driver 4 years ago
can also go.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/7fb9c74dc6bd12a4619ca44c92408e91352f1be0.1593791968.git.robin.murphy@arm.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/Kconfig