iommu/arm-smmu: Move Arm SMMU drivers into their own subdirectory
authorWill Deacon <will@kernel.org>
Fri, 24 Jul 2020 11:43:20 +0000 (12:43 +0100)
committerWill Deacon <will@kernel.org>
Mon, 27 Jul 2020 11:53:10 +0000 (12:53 +0100)
The Arm SMMU drivers are getting fat on vendor value-add, so move them
to their own subdirectory out of the way of the other IOMMU drivers.

Suggested-by: Joerg Roedel <joro@8bytes.org>
Signed-off-by: Will Deacon <will@kernel.org>
12 files changed:
MAINTAINERS
drivers/iommu/Makefile
drivers/iommu/arm/Makefile [new file with mode: 0644]
drivers/iommu/arm/arm-smmu-v3/Makefile [new file with mode: 0644]
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c [moved from drivers/iommu/arm-smmu-v3.c with 100% similarity]
drivers/iommu/arm/arm-smmu/Makefile [new file with mode: 0644]
drivers/iommu/arm/arm-smmu/arm-smmu-impl.c [moved from drivers/iommu/arm-smmu-impl.c with 100% similarity]
drivers/iommu/arm/arm-smmu/arm-smmu-nvidia.c [moved from drivers/iommu/arm-smmu-nvidia.c with 100% similarity]
drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c [moved from drivers/iommu/arm-smmu-qcom.c with 100% similarity]
drivers/iommu/arm/arm-smmu/arm-smmu.c [moved from drivers/iommu/arm-smmu.c with 100% similarity]
drivers/iommu/arm/arm-smmu/arm-smmu.h [moved from drivers/iommu/arm-smmu.h with 100% similarity]
drivers/iommu/arm/arm-smmu/qcom_iommu.c [moved from drivers/iommu/qcom_iommu.c with 100% similarity]

index ee2c0ba..e154704 100644 (file)
@@ -1498,7 +1498,7 @@ R:        Robin Murphy <robin.murphy@arm.com>
 L:     linux-arm-kernel@lists.infradead.org (moderated for non-subscribers)
 S:     Maintained
 F:     Documentation/devicetree/bindings/iommu/arm,smmu*
-F:     drivers/iommu/arm-smmu*
+F:     drivers/iommu/arm/
 F:     drivers/iommu/io-pgtable-arm-v7s.c
 F:     drivers/iommu/io-pgtable-arm.c
 
@@ -16813,7 +16813,7 @@ M:      Thierry Reding <thierry.reding@gmail.com>
 R:     Krishna Reddy <vdumpa@nvidia.com>
 L:     linux-tegra@vger.kernel.org
 S:     Supported
-F:     drivers/iommu/arm-smmu-nvidia.c
+F:     drivers/iommu/arm/arm-smmu/arm-smmu-nvidia.c
 F:     drivers/iommu/tegra*
 
 TEGRA KBC DRIVER
index 2b8203d..d971cff 100644 (file)
@@ -1,4 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0
+obj-y += arm/
 obj-$(CONFIG_IOMMU_API) += iommu.o
 obj-$(CONFIG_IOMMU_API) += iommu-traces.o
 obj-$(CONFIG_IOMMU_API) += iommu-sysfs.o
@@ -14,9 +15,6 @@ obj-$(CONFIG_MSM_IOMMU) += msm_iommu.o
 obj-$(CONFIG_AMD_IOMMU) += amd/iommu.o amd/init.o amd/quirks.o
 obj-$(CONFIG_AMD_IOMMU_DEBUGFS) += amd/debugfs.o
 obj-$(CONFIG_AMD_IOMMU_V2) += amd/iommu_v2.o
-obj-$(CONFIG_ARM_SMMU) += arm_smmu.o
-arm_smmu-objs += arm-smmu.o arm-smmu-impl.o arm-smmu-nvidia.o arm-smmu-qcom.o
-obj-$(CONFIG_ARM_SMMU_V3) += arm-smmu-v3.o
 obj-$(CONFIG_DMAR_TABLE) += intel/dmar.o
 obj-$(CONFIG_INTEL_IOMMU) += intel/iommu.o intel/pasid.o
 obj-$(CONFIG_INTEL_IOMMU) += intel/trace.o
@@ -35,6 +33,5 @@ obj-$(CONFIG_TEGRA_IOMMU_SMMU) += tegra-smmu.o
 obj-$(CONFIG_EXYNOS_IOMMU) += exynos-iommu.o
 obj-$(CONFIG_FSL_PAMU) += fsl_pamu.o fsl_pamu_domain.o
 obj-$(CONFIG_S390_IOMMU) += s390-iommu.o
-obj-$(CONFIG_QCOM_IOMMU) += qcom_iommu.o
 obj-$(CONFIG_HYPERV_IOMMU) += hyperv-iommu.o
 obj-$(CONFIG_VIRTIO_IOMMU) += virtio-iommu.o
diff --git a/drivers/iommu/arm/Makefile b/drivers/iommu/arm/Makefile
new file mode 100644 (file)
index 0000000..0f9efea
--- /dev/null
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: GPL-2.0
+obj-y += arm-smmu/ arm-smmu-v3/
diff --git a/drivers/iommu/arm/arm-smmu-v3/Makefile b/drivers/iommu/arm/arm-smmu-v3/Makefile
new file mode 100644 (file)
index 0000000..569e24e
--- /dev/null
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: GPL-2.0
+obj-$(CONFIG_ARM_SMMU_V3) += arm-smmu-v3.o
diff --git a/drivers/iommu/arm/arm-smmu/Makefile b/drivers/iommu/arm/arm-smmu/Makefile
new file mode 100644 (file)
index 0000000..e240a7b
--- /dev/null
@@ -0,0 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0
+obj-$(CONFIG_QCOM_IOMMU) += qcom_iommu.o
+obj-$(CONFIG_ARM_SMMU) += arm_smmu.o
+arm_smmu-objs += arm-smmu.o arm-smmu-impl.o arm-smmu-nvidia.o arm-smmu-qcom.o