linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH/RFC] SATA in its own config menu
@ 2006-01-15 21:57 Randy.Dunlap
  2006-01-16 12:08 ` Jan Engelhardt
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Randy.Dunlap @ 2006-01-15 21:57 UTC (permalink / raw)
  To: lkml; +Cc: jgarzik, jejb

From: Randy Dunlap <rdunlap@xenotime.net>

Put SATA into its own menu.  Reason:  using SCSI is an
implementation detail that users need not know about.

Enabling SATA selects SCSI since SATA uses SCSI as a function
library supplier.  It also enables BLK_DEV_SD since that is
what SATA drives look like in Linux.

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
---
 drivers/Kconfig           |    2 
 drivers/scsi/Kconfig      |  138 --------------------------------------------
 drivers/scsi/Kconfig.sata |  142 ++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 144 insertions(+), 138 deletions(-)

--- linux-2615-g10.orig/drivers/scsi/Kconfig
+++ linux-2615-g10/drivers/scsi/Kconfig
@@ -461,144 +461,6 @@ config SCSI_IN2000
 
 source "drivers/scsi/megaraid/Kconfig.megaraid"
 
-config SCSI_SATA
-	tristate "Serial ATA (SATA) support"
-	depends on SCSI
-	help
-	  This driver family supports Serial ATA host controllers
-	  and devices.
-
-	  If unsure, say N.
-
-config SCSI_SATA_AHCI
-	tristate "AHCI SATA support"
-	depends on SCSI_SATA && PCI
-	help
-	  This option enables support for AHCI Serial ATA.
-
-	  If unsure, say N.
-
-config SCSI_SATA_SVW
-	tristate "ServerWorks Frodo / Apple K2 SATA support"
-	depends on SCSI_SATA && PCI
-	help
-	  This option enables support for Broadcom/Serverworks/Apple K2
-	  SATA support.
-
-	  If unsure, say N.
-
-config SCSI_ATA_PIIX
-	tristate "Intel PIIX/ICH SATA support"
-	depends on SCSI_SATA && PCI
-	help
-	  This option enables support for ICH5 Serial ATA.
-	  If PATA support was enabled previously, this enables
-	  support for select Intel PIIX/ICH PATA host controllers.
-
-	  If unsure, say N.
-
-config SCSI_SATA_MV
-	tristate "Marvell SATA support (HIGHLY EXPERIMENTAL)"
-	depends on SCSI_SATA && PCI && EXPERIMENTAL
-	help
-	  This option enables support for the Marvell Serial ATA family.
-	  Currently supports 88SX[56]0[48][01] chips.
-
-	  If unsure, say N.
-
-config SCSI_SATA_NV
-	tristate "NVIDIA SATA support"
-	depends on SCSI_SATA && PCI && EXPERIMENTAL
-	help
-	  This option enables support for NVIDIA Serial ATA.
-
-	  If unsure, say N.
-
-config SCSI_PDC_ADMA
-	tristate "Pacific Digital ADMA support"
-	depends on SCSI_SATA && PCI
-	help
-	  This option enables support for Pacific Digital ADMA controllers
-
-	  If unsure, say N.
-
-config SCSI_SATA_QSTOR
-	tristate "Pacific Digital SATA QStor support"
-	depends on SCSI_SATA && PCI
-	help
-	  This option enables support for Pacific Digital Serial ATA QStor.
-
-	  If unsure, say N.
-
-config SCSI_SATA_PROMISE
-	tristate "Promise SATA TX2/TX4 support"
-	depends on SCSI_SATA && PCI
-	help
-	  This option enables support for Promise Serial ATA TX2/TX4.
-
-	  If unsure, say N.
-
-config SCSI_SATA_SX4
-	tristate "Promise SATA SX4 support"
-	depends on SCSI_SATA && PCI && EXPERIMENTAL
-	help
-	  This option enables support for Promise Serial ATA SX4.
-
-	  If unsure, say N.
-
-config SCSI_SATA_SIL
-	tristate "Silicon Image SATA support"
-	depends on SCSI_SATA && PCI && EXPERIMENTAL
-	help
-	  This option enables support for Silicon Image Serial ATA.
-
-	  If unsure, say N.
-
-config SCSI_SATA_SIL24
-	tristate "Silicon Image 3124/3132 SATA support"
-	depends on SCSI_SATA && PCI && EXPERIMENTAL
-	help
-	  This option enables support for Silicon Image 3124/3132 Serial ATA.
-
-	  If unsure, say N.
-
-config SCSI_SATA_SIS
-	tristate "SiS 964/180 SATA support"
-	depends on SCSI_SATA && PCI && EXPERIMENTAL
-	help
-	  This option enables support for SiS Serial ATA 964/180.
-
-	  If unsure, say N.
-
-config SCSI_SATA_ULI
-	tristate "ULi Electronics SATA support"
-	depends on SCSI_SATA && PCI && EXPERIMENTAL
-	help
-	  This option enables support for ULi Electronics SATA.
-
-	  If unsure, say N.
-
-config SCSI_SATA_VIA
-	tristate "VIA SATA support"
-	depends on SCSI_SATA && PCI
-	help
-	  This option enables support for VIA Serial ATA.
-
-	  If unsure, say N.
-
-config SCSI_SATA_VITESSE
-	tristate "VITESSE VSC-7174 SATA support"
-	depends on SCSI_SATA && PCI
-	help
-	  This option enables support for Vitesse VSC7174 Serial ATA.
-
-	  If unsure, say N.
-
-config SCSI_SATA_INTEL_COMBINED
-	bool
-	depends on IDE=y && !BLK_DEV_IDE_SATA && (SCSI_SATA_AHCI || SCSI_ATA_PIIX)
-	default y
-
 config SCSI_BUSLOGIC
 	tristate "BusLogic SCSI support"
 	depends on (PCI || ISA || MCA) && SCSI && ISA_DMA_API
--- /dev/null
+++ linux-2615-g10/drivers/scsi/Kconfig.sata
@@ -0,0 +1,142 @@
+menu "Serial ATA (SATA) device support"
+
+config SCSI_SATA
+	tristate "Serial ATA (SATA) support"
+	select SCSI
+	select BLK_DEV_SD
+	help
+	  This driver family supports Serial ATA host controllers
+	  and devices.
+
+	  If unsure, say N.
+
+config SCSI_SATA_AHCI
+	tristate "AHCI SATA support"
+	depends on SCSI_SATA && PCI
+	help
+	  This option enables support for AHCI Serial ATA.
+
+	  If unsure, say N.
+
+config SCSI_SATA_SVW
+	tristate "ServerWorks Frodo / Apple K2 SATA support"
+	depends on SCSI_SATA && PCI
+	help
+	  This option enables support for Broadcom/Serverworks/Apple K2
+	  SATA support.
+
+	  If unsure, say N.
+
+config SCSI_ATA_PIIX
+	tristate "Intel PIIX/ICH SATA support"
+	depends on SCSI_SATA && PCI
+	help
+	  This option enables support for ICH5 Serial ATA.
+	  If PATA support was enabled previously, this enables
+	  support for select Intel PIIX/ICH PATA host controllers.
+
+	  If unsure, say N.
+
+config SCSI_SATA_MV
+	tristate "Marvell SATA support (HIGHLY EXPERIMENTAL)"
+	depends on SCSI_SATA && PCI && EXPERIMENTAL
+	help
+	  This option enables support for the Marvell Serial ATA family.
+	  Currently supports 88SX[56]0[48][01] chips.
+
+	  If unsure, say N.
+
+config SCSI_SATA_NV
+	tristate "NVIDIA SATA support"
+	depends on SCSI_SATA && PCI && EXPERIMENTAL
+	help
+	  This option enables support for NVIDIA Serial ATA.
+
+	  If unsure, say N.
+
+config SCSI_PDC_ADMA
+	tristate "Pacific Digital ADMA support"
+	depends on SCSI_SATA && PCI
+	help
+	  This option enables support for Pacific Digital ADMA controllers
+
+	  If unsure, say N.
+
+config SCSI_SATA_QSTOR
+	tristate "Pacific Digital SATA QStor support"
+	depends on SCSI_SATA && PCI
+	help
+	  This option enables support for Pacific Digital Serial ATA QStor.
+
+	  If unsure, say N.
+
+config SCSI_SATA_PROMISE
+	tristate "Promise SATA TX2/TX4 support"
+	depends on SCSI_SATA && PCI
+	help
+	  This option enables support for Promise Serial ATA TX2/TX4.
+
+	  If unsure, say N.
+
+config SCSI_SATA_SX4
+	tristate "Promise SATA SX4 support"
+	depends on SCSI_SATA && PCI && EXPERIMENTAL
+	help
+	  This option enables support for Promise Serial ATA SX4.
+
+	  If unsure, say N.
+
+config SCSI_SATA_SIL
+	tristate "Silicon Image SATA support"
+	depends on SCSI_SATA && PCI && EXPERIMENTAL
+	help
+	  This option enables support for Silicon Image Serial ATA.
+
+	  If unsure, say N.
+
+config SCSI_SATA_SIL24
+	tristate "Silicon Image 3124/3132 SATA support"
+	depends on SCSI_SATA && PCI && EXPERIMENTAL
+	help
+	  This option enables support for Silicon Image 3124/3132 Serial ATA.
+
+	  If unsure, say N.
+
+config SCSI_SATA_SIS
+	tristate "SiS 964/180 SATA support"
+	depends on SCSI_SATA && PCI && EXPERIMENTAL
+	help
+	  This option enables support for SiS Serial ATA 964/180.
+
+	  If unsure, say N.
+
+config SCSI_SATA_ULI
+	tristate "ULi Electronics SATA support"
+	depends on SCSI_SATA && PCI && EXPERIMENTAL
+	help
+	  This option enables support for ULi Electronics SATA.
+
+	  If unsure, say N.
+
+config SCSI_SATA_VIA
+	tristate "VIA SATA support"
+	depends on SCSI_SATA && PCI
+	help
+	  This option enables support for VIA Serial ATA.
+
+	  If unsure, say N.
+
+config SCSI_SATA_VITESSE
+	tristate "VITESSE VSC-7174 SATA support"
+	depends on SCSI_SATA && PCI
+	help
+	  This option enables support for Vitesse VSC7174 Serial ATA.
+
+	  If unsure, say N.
+
+config SCSI_SATA_INTEL_COMBINED
+	bool
+	depends on IDE=y && !BLK_DEV_IDE_SATA && (SCSI_SATA_AHCI || SCSI_ATA_PIIX)
+	default y
+
+endmenu
--- linux-2615-g10.orig/drivers/Kconfig
+++ linux-2615-g10/drivers/Kconfig
@@ -18,6 +18,8 @@ source "drivers/ide/Kconfig"
 
 source "drivers/scsi/Kconfig"
 
+source "drivers/scsi/Kconfig.sata"
+
 source "drivers/cdrom/Kconfig"
 
 source "drivers/md/Kconfig"


---

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH/RFC] SATA in its own config menu
  2006-01-15 21:57 [PATCH/RFC] SATA in its own config menu Randy.Dunlap
@ 2006-01-16 12:08 ` Jan Engelhardt
  2006-01-16 12:13 ` Christoph Hellwig
  2006-01-16 14:16 ` Jeff Garzik
  2 siblings, 0 replies; 8+ messages in thread
From: Jan Engelhardt @ 2006-01-16 12:08 UTC (permalink / raw)
  To: Randy.Dunlap; +Cc: lkml, jgarzik, jejb

>Put SATA into its own menu.  Reason:  using SCSI is an
>implementation detail that users need not know about.
>
>Enabling SATA selects SCSI since SATA uses SCSI as a function
>library supplier.  It also enables BLK_DEV_SD since that is
>what SATA drives look like in Linux.

Good idea.

>--- /dev/null
>+++ linux-2615-g10/drivers/scsi/Kconfig.sata
>@@ -0,0 +1,142 @@
>+menu "Serial ATA (SATA) device support"
>+
>+config SCSI_SATA
>+	tristate "Serial ATA (SATA) support"
>+	select SCSI
>+	select BLK_DEV_SD
>+	help
>+	  This driver family supports Serial ATA host controllers
>+	  and devices.
>+
>+	  If unsure, say N.

I'd prefer

menuconfig SCSI_SATA
    tristate "Serial ATA (SATA) suport"
    select SCSI...



Jan Engelhardt
-- 
| Alphagate Systems, http://alphagate.hopto.org/
| jengelh's site, http://jengelh.hopto.org/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH/RFC] SATA in its own config menu
  2006-01-15 21:57 [PATCH/RFC] SATA in its own config menu Randy.Dunlap
  2006-01-16 12:08 ` Jan Engelhardt
@ 2006-01-16 12:13 ` Christoph Hellwig
  2006-01-16 14:12   ` Jens Axboe
  2006-01-16 14:16 ` Jeff Garzik
  2 siblings, 1 reply; 8+ messages in thread
From: Christoph Hellwig @ 2006-01-16 12:13 UTC (permalink / raw)
  To: Randy.Dunlap; +Cc: lkml, jgarzik, jejb

On Sun, Jan 15, 2006 at 01:57:28PM -0800, Randy.Dunlap wrote:
> From: Randy Dunlap <rdunlap@xenotime.net>
> 
> Put SATA into its own menu.  Reason:  using SCSI is an
> implementation detail that users need not know about.
> 
> Enabling SATA selects SCSI since SATA uses SCSI as a function
> library supplier.  It also enables BLK_DEV_SD since that is
> what SATA drives look like in Linux.

we'll soon support (or already do?) support sata atapi, when this
won't be true anymore.  Please never select scsi upper drivers from
lower drivers, this independence is the whole point of the layered
architecture.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH/RFC] SATA in its own config menu
  2006-01-16 12:13 ` Christoph Hellwig
@ 2006-01-16 14:12   ` Jens Axboe
  2006-01-17 16:50     ` Jan Engelhardt
  0 siblings, 1 reply; 8+ messages in thread
From: Jens Axboe @ 2006-01-16 14:12 UTC (permalink / raw)
  To: Christoph Hellwig, Randy.Dunlap, lkml, jgarzik, jejb

On Mon, Jan 16 2006, Christoph Hellwig wrote:
> On Sun, Jan 15, 2006 at 01:57:28PM -0800, Randy.Dunlap wrote:
> > From: Randy Dunlap <rdunlap@xenotime.net>
> > 
> > Put SATA into its own menu.  Reason:  using SCSI is an
> > implementation detail that users need not know about.
> > 
> > Enabling SATA selects SCSI since SATA uses SCSI as a function
> > library supplier.  It also enables BLK_DEV_SD since that is
> > what SATA drives look like in Linux.
> 
> we'll soon support (or already do?) support sata atapi, when this
> won't be true anymore.  Please never select scsi upper drivers from
> lower drivers, this independence is the whole point of the layered
> architecture.

It's already possible, and besides you could be using sg with your SATA
devices stand-alone if you so wanted. So this selection is indeed a
nonsensical one, it's an invalid dependency.

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH/RFC] SATA in its own config menu
  2006-01-15 21:57 [PATCH/RFC] SATA in its own config menu Randy.Dunlap
  2006-01-16 12:08 ` Jan Engelhardt
  2006-01-16 12:13 ` Christoph Hellwig
@ 2006-01-16 14:16 ` Jeff Garzik
  2006-01-17  4:59   ` Randy.Dunlap
  2 siblings, 1 reply; 8+ messages in thread
From: Jeff Garzik @ 2006-01-16 14:16 UTC (permalink / raw)
  To: Randy.Dunlap; +Cc: lkml, jejb

Randy.Dunlap wrote:
> From: Randy Dunlap <rdunlap@xenotime.net>
> 
> Put SATA into its own menu.  Reason:  using SCSI is an
> implementation detail that users need not know about.
> 
> Enabling SATA selects SCSI since SATA uses SCSI as a function
> library supplier.  It also enables BLK_DEV_SD since that is
> what SATA drives look like in Linux.
> 
> Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
> ---
>  drivers/Kconfig           |    2 
>  drivers/scsi/Kconfig      |  138 --------------------------------------------
>  drivers/scsi/Kconfig.sata |  142 ++++++++++++++++++++++++++++++++++++++++++++++
>  3 files changed, 144 insertions(+), 138 deletions(-)

This needs to be done after the code gets moved to drivers/ata...

	Jeff




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH/RFC] SATA in its own config menu
  2006-01-16 14:16 ` Jeff Garzik
@ 2006-01-17  4:59   ` Randy.Dunlap
  0 siblings, 0 replies; 8+ messages in thread
From: Randy.Dunlap @ 2006-01-17  4:59 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: linux-kernel, james.bottomley

On Mon, 16 Jan 2006 09:16:28 -0500 Jeff Garzik wrote:

> Randy.Dunlap wrote:
> > From: Randy Dunlap <rdunlap@xenotime.net>
> > 
> > Put SATA into its own menu.  Reason:  using SCSI is an
> > implementation detail that users need not know about.
> > 
> > Enabling SATA selects SCSI since SATA uses SCSI as a function
> > library supplier.  It also enables BLK_DEV_SD since that is
> > what SATA drives look like in Linux.
> > 
> > Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
> > ---
> >  drivers/Kconfig           |    2 
> >  drivers/scsi/Kconfig      |  138 --------------------------------------------
> >  drivers/scsi/Kconfig.sata |  142 ++++++++++++++++++++++++++++++++++++++++++++++
> >  3 files changed, 144 insertions(+), 138 deletions(-)
> 
> This needs to be done after the code gets moved to drivers/ata...

Thanks.  It was an RFC and it got comments.
That's all that I hoped for.

---
~Randy

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH/RFC] SATA in its own config menu
  2006-01-16 14:12   ` Jens Axboe
@ 2006-01-17 16:50     ` Jan Engelhardt
  2006-01-17 16:51       ` Christoph Hellwig
  0 siblings, 1 reply; 8+ messages in thread
From: Jan Engelhardt @ 2006-01-17 16:50 UTC (permalink / raw)
  To: Jens Axboe; +Cc: Christoph Hellwig, Randy.Dunlap, lkml, jgarzik, jejb

>> 
>> we'll soon support (or already do?) support sata atapi, when this
>> won't be true anymore.  Please never select scsi upper drivers from
>> lower drivers, this independence is the whole point of the layered
>> architecture.

Hm, doesnot usb_storage select sd_mod? If I understand you correctly, this 
usb->sd selection is exactly the thing you don't want.



Jan Engelhardt
-- 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH/RFC] SATA in its own config menu
  2006-01-17 16:50     ` Jan Engelhardt
@ 2006-01-17 16:51       ` Christoph Hellwig
  0 siblings, 0 replies; 8+ messages in thread
From: Christoph Hellwig @ 2006-01-17 16:51 UTC (permalink / raw)
  To: Jan Engelhardt
  Cc: Jens Axboe, Christoph Hellwig, Randy.Dunlap, lkml, jgarzik, jejb

On Tue, Jan 17, 2006 at 05:50:12PM +0100, Jan Engelhardt wrote:
> Hm, doesnot usb_storage select sd_mod?

no, it doesn't.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-01-17 16:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-15 21:57 [PATCH/RFC] SATA in its own config menu Randy.Dunlap
2006-01-16 12:08 ` Jan Engelhardt
2006-01-16 12:13 ` Christoph Hellwig
2006-01-16 14:12   ` Jens Axboe
2006-01-17 16:50     ` Jan Engelhardt
2006-01-17 16:51       ` Christoph Hellwig
2006-01-16 14:16 ` Jeff Garzik
2006-01-17  4:59   ` Randy.Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).