diff mbox series

[3/7] iommu/arm-smmu: Add dependency on io-pgtable format modules

Message ID 1609206541-14562-4-git-send-email-isaacm@codeaurora.org (mailing list archive)
State New, archived
Headers show
Series iommu: Permit modular builds of io-pgtable drivers | expand

Commit Message

Isaac J. Manjarres Dec. 29, 2020, 1:48 a.m. UTC
The SMMU driver depends on the availability of the ARM LPAE
io-pgtable format code to work properly. In preparation
for having the io-pgtable formats as modules, add a "pre"
dependency with MODULE_SOFTDEP() to ensure that the ARM LPAE
io-pgtable format module is loaded before loading the ARM SMMU
driver module. Also, add a dependency on the ARMv7 short descriptor
io-pgtable format, so that it can be loaded before the SMMU driver
module, if available.

Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
 drivers/iommu/arm/arm-smmu/arm-smmu.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series


diff --git a/drivers/iommu/arm/arm-smmu/arm-smmu.c b/drivers/iommu/arm/arm-smmu/arm-smmu.c
index d8c6bfd..a72649f 100644
--- a/drivers/iommu/arm/arm-smmu/arm-smmu.c
+++ b/drivers/iommu/arm/arm-smmu/arm-smmu.c
@@ -2351,3 +2351,4 @@  MODULE_DESCRIPTION("IOMMU API for ARM architected SMMU implementations");
 MODULE_AUTHOR("Will Deacon <will@kernel.org>");
+MODULE_SOFTDEP("pre: io-pgtable-arm io-pgtable-arm-v7s");