Skip to contentSkip to conversation

ppc: select HAVE_PATA_PLATFORM in PPC instead of creating a PPC dependency

PATCH Superseded Lukas Bulwahn 1 participant 2 messages Sep 9, 2022

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc: select HAVE_PATA_PLATFORM in PPC instead of creating a PPC dependency

Commit cc18e0fea790 ("LIBATA: Add HAVE_PATA_PLATFORM to select PATA_PLATFORM driver") introduces config HAVE_PATA_PLATFORM, and expects that all architectures simply select this config when the architecture supports using the PATA_PLATFORM driver.

This is properly implemented already for all architectures except for the powerpc architecture. Implement this for powerpc now.

Adjust the config of the powerpc architecture to use the config HAVE_PATA_PLATFORM and simplify the config PATA_PLATFORM to not mention any specific architecture anymore.

---
 arch/powerpc/Kconfig | 1 +
 drivers/ata/Kconfig  | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
arch/powerpc/Kconfig +1 -0
index 39d71d7701bd..2575e21b6e6b 100644
@@ -237,6 +237,7 @@ config PPC
 	select HAVE_MOD_ARCH_SPECIFIC
 	select HAVE_NMI				if PERF_EVENTS || (PPC64 && PPC_BOOK3S)
 	select HAVE_OPTPROBES
+	select HAVE_PATA_PLATFORM
 	select HAVE_PERF_EVENTS
 	select HAVE_PERF_EVENTS_NMI		if PPC64
 	select HAVE_PERF_REGS
drivers/ata/Kconfig +1 -1
index 1c9f4fb2595d..ed3547165528 100644
@@ -1103,7 +1103,7 @@ config PATA_PCMCIA
 
 config PATA_PLATFORM
 	tristate "Generic platform device PATA support"
-	depends on EXPERT || PPC || HAVE_PATA_PLATFORM
+	depends on EXPERT || HAVE_PATA_PLATFORM
 	help
 	  This option enables support for generic directly connected ATA
 	  devices commonly found on embedded systems.
Signature · 1 line
2.17.1
#1 lore raw
Quoted 6 lines · Lukas Bulwahn

Commit cc18e0fea790 ("LIBATA: Add HAVE_PATA_PLATFORM to select PATA_PLATFORM driver") introduces config HAVE_PATA_PLATFORM, and expects that all architectures simply select this config when the architecture supports using the PATA_PLATFORM driver.

Quoted 8 lines

This is properly implemented already for all architectures except for the powerpc architecture. Implement this for powerpc now.

Adjust the config of the powerpc architecture to use the config HAVE_PATA_PLATFORM and simplify the config PATA_PLATFORM to not mention any specific architecture anymore.

Please ignore this patch and pick:

https://lore.kernel.org/linuxppc-dev/[email protected]/

Lukas

Quoted 33 lines
---
 arch/powerpc/Kconfig | 1 +
 drivers/ata/Kconfig  | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
arch/powerpc/Kconfig +1 -0
index 39d71d7701bd..2575e21b6e6b 100644
@@ -237,6 +237,7 @@ config PPC
        select HAVE_MOD_ARCH_SPECIFIC
        select HAVE_NMI                         if PERF_EVENTS || (PPC64 && PPC_BOOK3S)
        select HAVE_OPTPROBES
+       select HAVE_PATA_PLATFORM
        select HAVE_PERF_EVENTS
        select HAVE_PERF_EVENTS_NMI             if PPC64
        select HAVE_PERF_REGS
drivers/ata/Kconfig +1 -2
index 1c9f4fb2595d..ed3547165528 100644
@@ -1103,7 +1103,7 @@ config PATA_PCMCIA
 
 config PATA_PLATFORM
        tristate "Generic platform device PATA support"
-       depends on EXPERT || PPC || HAVE_PATA_PLATFORM
+       depends on EXPERT || HAVE_PATA_PLATFORM
        help
          This option enables support for generic directly connected ATA
          devices commonly found on embedded systems.
--

2.17.1