Skip to contentSkip to conversation

powerpc: Fix incorrect PPC32 PAMU dependency

PATCH Applied Andy Fleming 2 participants 2 messages Mar 17, 2016 – Apr 7, 2016 1 message not in the archive IOMMU

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 powerpc: Fix incorrect PPC32 PAMU dependency

The Freescale PAMU can be enabled on both 32 and 64-bit Power chips. Commit 477ab7a19cec8409e4e2dd10e7348e4cac3c06e5 (iommu: Make more drivers depend on COMPILE_TEST) restricted PAMU to PPC32. PPC covers both.

---

v2: Implemented Michael Ellerman's suggestion to clean up the
dependency chain

 drivers/iommu/Kconfig | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/iommu/Kconfig +1 -2
index a1e75cb..70c79ce 100644
@@ -57,8 +57,7 @@ config IOMMU_DMA
 
 config FSL_PAMU
 	bool "Freescale IOMMU support"
-	depends on PPC32
-	depends on PPC_E500MC || COMPILE_TEST
+	depends on PPC_E500MC || (COMPILE_TEST && PPC)
 	select IOMMU_API
 	select GENERIC_ALLOCATOR
 	help
Signature · 1 line
1.9.1
Applied
#2 lore raw
In reply to a message not in the archive
Quoted 10 lines · Andy Fleming

The Freescale PAMU can be enabled on both 32 and 64-bit Power chips. Commit 477ab7a19cec8409e4e2dd10e7348e4cac3c06e5 (iommu: Make more drivers depend on COMPILE_TEST) restricted PAMU to PPC32. PPC covers both.

---

v2: Implemented Michael Ellerman's suggestion to clean up the
dependency chain

Applied, thanks.