Skip to contentSkip to conversation

Add configuration for availability of pata_platform

RFC PATCH New Ben Dooks 1 participant 1 message Jul 9, 2007 libata

lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

RFC PATCH 1/1 Add configuration for availability of pata_platform

Repost of http://marc.info/?l=linux-ide&m=118106594419762&w=2

Could someone comment on the following please:

Add a hidden configuration for an architecture or machine to select to show that the pata_platform driver should be show in the configuration.

This method is used to allow each individual machine/arch to specify this, instead of creating large "depends on" on the driver's Kconfig menu.

If this patch is acceptable, I will submit a patch to move ARCH_RPC to select ARCH_HAS_PATA_PLATFORM.

drivers/ata/Kconfig +7 -1
Index: linux-2.6.22-rc4-simtec/drivers/ata/Kconfig
===================================================================
@@ -548,9 +548,15 @@ config PATA_WINBOND_VLB
 	  Support for the Winbond W83759A controller on Vesa Local Bus
 	  systems.
 
+config ARCH_HAS_PLATFORM_ATA
+	bool
+	help
+	  Embedded option to show the architecture has at least one
+	  machine which can use the platform device ata support.
+
 config PATA_PLATFORM
 	tristate "Generic platform device PATA support"
-	depends on EMBEDDED || ARCH_RPC
+	depends on EMBEDDED || ARCH_RPC || ARCH_HAS_PLATFORM_ATA
 	help
 	  This option enables support for generic directly connected ATA
 	  devices commonly found on embedded systems.
Signature · 4 lines
Ben

Q:      What's a light-year?
A:      One-third less calories than a regular year.