pata-platform configuration changes / Remove bast-ide
Subsystems (3)
cover pata-platform configuration changes / Remove bast-ide
With libata's pata-platform support being merged, look at removing the old bast-ide driver as this can now be done by registering a pair of platform devices in the relevant machine support file.
As an addition, introduct HAVE_PATA_PLATFORM to allow any platform or machine that uses this support to define their use of this without having to explicitly enable CONFIG_EMBEDDED or add numerous enabling statements into drivers/ata/Kconfig.
For an example, this is the update that will happen to the relevant Kconfig for the "Simtec Anubis" machine:
arch/arm/mach-s3c2440/Kconfig +1 -0
@@ -29,6 +29,7 @@ config MACH_ANUBIS bool "Simtec Electronics ANUBIS" select CPU_S3C2440 select PM_SIMTEC if PM + select HAVE_PATA_PLATFORM help Say Y here if you are using the Simtec Electronics ANUBIS development system
These two patches do not update the PATA_PLATFORM to remove the current 'depends on' lines as these require syncronisation with the relevant maintainers, so I propose these be submitted once the HAVE_PATA_PLATFORM is merged. This means the sequence is merge the HAVE_PATA_PLATFORM Kconfig changes, then send the updates to use it to each maintainer. Onces these are merged it is then possible to remove the other 'depends on' items from the Kconfig without damaging architecture or machine support.
Signature · 3 lines
Ben ([email protected], http://www.fluff.org/) 'a smiley only costs 4 bytes'
PATCH 1/2 LIBATA: Add HAVE_PATA_PLATFORM to select PATA_PLATFORM driver
Add HAVE_PATA_PLATFORM to select the pata platform driver to ensure that we do not end up with a long 'depends on' list when other users of this driver turn up.
drivers/ata/Kconfig +9 -1
@@ -651,9 +651,17 @@ config PATA_WINBOND_VLB Support for the Winbond W83759A controller on Vesa Local Bus systems. +config HAVE_PATA_PLATFORM + bool + help + This is an internal configuration node for any machine that + uses pata-platform driver to enable the relevant driver in the + configuration structure without having to submit endless patches + to update the PATA_PLATFORM entry. + config PATA_PLATFORM tristate "Generic platform device PATA support" - depends on EMBEDDED || ARCH_RPC || PPC + depends on EMBEDDED || ARCH_RPC || PPC || HAVE_PATA_PLATFORM help This option enables support for generic directly connected ATA devices commonly found on embedded systems.
Signature · 3 lines
Ben ([email protected], http://www.fluff.org/) 'a smiley only costs 4 bytes'
PATCH 2/2 BAST: Remove old IDE driver
In reply to Ben DooksRemove the old BAST IDE driver, as we are now using the platform-pata support.
drivers/ide/Kconfig +0 -7
@@ -823,13 +823,6 @@ config BLK_DEV_IDE_RAPIDE Say Y here if you want to support the Yellowstone RapIDE controller manufactured for use with Acorn computers. -config BLK_DEV_IDE_BAST - tristate "Simtec BAST / Thorcom VR1000 IDE support" - depends on ARM && (ARCH_BAST || MACH_VR1000) - help - Say Y here if you want to support the onboard IDE channels on the - Simtec BAST or the Thorcom VR1000 - config IDE_H8300 tristate "H8300 IDE support" depends on H8300
drivers/ide/arm/Makefile +0 -1
@@ -1,7 +1,6 @@ obj-$(CONFIG_BLK_DEV_IDE_ICSIDE) += icside.o obj-$(CONFIG_BLK_DEV_IDE_RAPIDE) += rapide.o -obj-$(CONFIG_BLK_DEV_IDE_BAST) += bast-ide.o obj-$(CONFIG_BLK_DEV_PALMCHIP_BK3710) += palm_bk3710.o ifeq ($(CONFIG_IDE_ARM), m)
drivers/ide/arm/bast-ide.c deleted +0 -90
90 lines not on this page · raw message
Signature · 3 lines
Ben ([email protected], http://www.fluff.org/) 'a smiley only costs 4 bytes'
Re: [patch 2/2] BAST: Remove old IDE driver
Quoted 4 lines · Ben Dooks
Remove the old BAST IDE driver, as we are now using the platform-pata support.
Signed-off-by Ben Dooks <[email protected]>
ide_platform a.k.a. CONFIG_BLK_DEV_PLATFORM doesn't have "depends on" limitation so I wonder if it is possible to use it "out-of-the-box" on ANUBIS now?
[ so I could apply this patch without waiting for patch #1/2 ]
Thanks,
Bart
Re: [patch 2/2] BAST: Remove old IDE driver
Quoted 9 lines · Bartlomiej Zolnierkiewicz
Quoted 4 lines · Ben Dooks
Remove the old BAST IDE driver, as we are now using the platform-pata support.
Signed-off-by Ben Dooks <[email protected]>
ide_platforma.k.a.CONFIG_BLK_DEV_PLATFORMdoesn't have "depends on" limitation so I wonder if it is possible to use it "out-of-the-box" on ANUBIS now?
I'll have a look.
Quoted 1 line
[ so I could apply this patch without waiting for patch #1/2 ]
I'd prefer to see the kconfig changes done, we're testing with libata as the default, however it is _possible_ to select either with a bit of pain. CONFIG_EMBEDDED isn't really what we want, but at least we get a working system.
So, short answer, enqueue this, I'm sure we'll manage either way.
Signature · 4 lines
Ben Q: What's a light-year? A: One-third less calories than a regular year.
Re: [patch 2/2] BAST: Remove old IDE driver
Quoted 13 lines · Ben Dooks
Quoted 9 lines · Bartlomiej Zolnierkiewicz
Quoted 4 lines · Ben Dooks
Remove the old BAST IDE driver, as we are now using the platform-pata support.
Signed-off-by Ben Dooks <[email protected]>
ide_platforma.k.a.CONFIG_BLK_DEV_PLATFORMdoesn't have "depends on" limitation so I wonder if it is possible to use it "out-of-the-box" on ANUBIS now?I'll have a look.
Quoted 8 lines
Quoted 1 line
[ so I could apply this patch without waiting for patch #1/2 ]
I'd prefer to see the kconfig changes done, we're testing with libata as the default, however it is _possible_ to select either with a bit of pain.
CONFIG_EMBEDDEDisn't really what we want, but at least we get a working system.So, short answer, enqueue this, I'm sure we'll manage either way.
ok, I applied it to IDE tree but will wait with pushing it to Linus until patch #1/2 goes in (or there is some confirmation w.r.t. ide_platform)
Thanks,
Bart
Jeff Garzik
AppliedRe: [patch 1/2] LIBATA: Add HAVE_PATA_PLATFORM to select PATA_PLATFORM driver
In reply to Ben DooksQuoted 17 lines · Ben Dooks
Add
HAVE_PATA_PLATFORMto select the pata platform driver to ensure that we do not end up with a long 'depends on' list when other users of this driver turn up.Signed-off-by Ben Dooks <[email protected]>Index: linux-2.6.26-rc3-quilt1/drivers/ata/Kconfig
===================================================================drivers/ata/Kconfig +3
-0@@ -651,9 +651,17 @@ config PATA_WINBOND_VLB Support for the Winbond W83759A controller on Vesa Local Bus systems. +config HAVE_PATA_PLATFORM + bool + help
drivers/ata/Kconfig config PATA_WINBOND_VLB · line 665
Quoted 10 lines
drivers/ata/Kconfig +6
-1+ This is an internal configuration node for any machine that + uses pata-platform driver to enable the relevant driver in the + configuration structure without having to submit endless patches + to update the PATA_PLATFORM entry. + config PATA_PLATFORM tristate "Generic platform device PATA support" - depends on EMBEDDED || ARCH_RPC || PPC + depends on EMBEDDED || ARCH_RPC || PPC || HAVE_PATA_PLATFORM help
applied