public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@kernel.org>
To: Stefan Richter <stefanr@s5r6.in-berlin.de>
Cc: Sam Ravnborg <sam@ravnborg.org>,
	James Bottomley <james.bottomley@steeleye.com>,
	linux-scsi@vger.kernel.org, Jeff Garzik <jeff@garzik.org>,
	Andi Kleen <andi@firstfloor.org>,
	Folkert van Heusden <folkert@vanheusden.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [RFC PATCH] SCSI: split Kconfig menu into two
Date: Sat, 15 Sep 2007 13:40:55 +0200	[thread overview]
Message-ID: <20070915114055.GP3563@stusta.de> (raw)
In-Reply-To: <tkrat.552dbee831c88bbe@s5r6.in-berlin.de>

On Fri, Sep 14, 2007 at 10:01:18PM +0200, Stefan Richter wrote:
> On 14 Sep, Adrian Bunk wrote:
> > On Fri, Sep 14, 2007 at 09:00:33PM +0200, Sam Ravnborg wrote:
> >> Hi Stefan.
> >> 
> >> Such a patch really calls for some minimal unifacation among
> >> the architectures.
> >> 
> >> > 
> >> >  arch/alpha/Kconfig            |    2 
> >> >  arch/arm/Kconfig              |    2 
> >> >  arch/avr32/Kconfig            |    2 
> >> >  arch/blackfin/Kconfig         |    2 
> >> >  arch/cris/Kconfig             |    2 
> >> >  arch/frv/Kconfig              |    2 
> >> >  arch/i386/Kconfig             |    2 
> >> >  arch/ia64/Kconfig             |    2 
> >> >  arch/m32r/Kconfig             |    2 
> >> >  arch/m68k/Kconfig             |    2 
> >> >  arch/m68knommu/Kconfig        |    2 
> >> >  arch/mips/Kconfig             |    2 
> >> >  arch/parisc/Kconfig           |    2 
> >> >  arch/powerpc/Kconfig          |    2 
> >> >  arch/ppc/Kconfig              |    2 
> >> >  arch/s390/Kconfig             |    2 
> >> >  arch/sh/Kconfig               |    2 
> >> >  arch/sh64/Kconfig             |    2 
> >> >  arch/sparc/Kconfig            |    2 
> >> >  arch/sparc64/Kconfig          |    2 
> >> >  arch/um/Kconfig               |    2 
> >> >  arch/v850/Kconfig             |    2 
> >> >  arch/x86_64/Kconfig           |    4 
> >> >  arch/xtensa/Kconfig           |    2 
> >> 
> >> 
> >> Exactly the same change for all architectures.
> >> IT would be good to introduce a common file that contains
> >> some of the shared stuff from the different architectures.
> >> We could start out simple with:
> >> 
> >> arch/Kconfig.arch:
> >>...
> 
> Yes, that would be good.  But Adrian has a point too.
> 
> > Stefan simply shouldn't move it out of drivers/Kconfig.
>...
>  drivers/Kconfig               |    4 
>  drivers/scsi/Kconfig          | 1589 ----------------------------------
>  drivers/scsi/Kconfig.lowlevel | 1578 +++++++++++++++++++++++++++++++++
>  3 files changed, 1588 insertions(+), 1583 deletions(-)

Nearly right.  ;-)

There are a few architectures not (yet) using drivers/Kconfig.

> Index: linux-2.6.23-rc6/drivers/Kconfig
> ===================================================================
> --- linux-2.6.23-rc6.orig/drivers/Kconfig
> +++ linux-2.6.23-rc6/drivers/Kconfig
> @@ -1,5 +1,7 @@
>  # drivers/Kconfig
>  
> +source "drivers/scsi/Kconfig"
> +
>  menu "Device Drivers"
>  
>  source "drivers/base/Kconfig"
> @@ -22,7 +24,7 @@ source "drivers/misc/Kconfig"
>  
>  source "drivers/ide/Kconfig"
>  
> -source "drivers/scsi/Kconfig"
> +source "drivers/scsi/Kconfig.lowlevel"
>  
>  source "drivers/ata/Kconfig"
>...

This way the order is wrong:

There should first be the lowlevel SCSI, SATA, USB etc. drivers, these 
drivers should select CONFIG_SCSI, and then the menu offering support 
for disk, CD,...

> Index: linux-2.6.23-rc6/drivers/scsi/Kconfig
> ===================================================================
> --- linux-2.6.23-rc6.orig/drivers/scsi/Kconfig
> +++ linux-2.6.23-rc6/drivers/scsi/Kconfig
> @@ -1,14 +1,7 @@
> -menu "SCSI device support"
> -
> -config RAID_ATTRS
> -	tristate "RAID Transport Class"
> -	default n
> -	depends on BLOCK
> -	---help---
> -	  Provides RAID
> +menu "Storage (core and SCSI commands)"
>  
>  config SCSI
> -	tristate "SCSI device support"
> +	tristate "Storage support (core and SCSI commands)"
>  	depends on BLOCK
>  	select SCSI_DMA if HAS_DMA
>  	---help---
>...

What is "storage support"?
SATA?
PATA?
USB mass storage?
MMC?
MTD?

Whether or not a driver uses the SCSI layer is an implementation detail 
(it even differs for the two USB mass storage implementations and the 
two PATA implementations in the kernel) the user shouldn't have to know 
about.

I don't see any reason why CONFIG_SCSI should have to stay user-visible 
at all after your patch.

> Stefan Richter

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


  reply	other threads:[~2007-09-15 11:40 UTC|newest]

Thread overview: 88+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-07 12:48 sata & scsi suggestion for make menuconfig Folkert van Heusden
2007-09-07 14:40 ` Jan Engelhardt
2007-09-07 14:58   ` Folkert van Heusden
2007-09-07 19:38     ` Krzysztof Halasa
2007-09-07 23:02       ` Jan Engelhardt
2007-09-08  7:27         ` Jan Engelhardt
2007-09-07 15:35 ` Randy Dunlap
2007-09-07 15:59   ` Folkert van Heusden
2007-09-07 16:21     ` Stefan Richter
2007-09-07 23:05       ` Folkert van Heusden
2007-09-08  7:05         ` Stefan Richter
2007-09-08  7:29           ` Jan Engelhardt
2007-09-08  7:56             ` Stefan Richter
2007-09-08 16:31           ` Randy Dunlap
2007-09-08 16:44             ` Stefan Richter
2007-09-08 16:48               ` Randy Dunlap
2007-09-08 19:45                 ` Stefan Richter
2007-09-08  8:43   ` Sam Ravnborg
2007-09-13  8:50   ` Helge Hafting
2007-09-14 16:42     ` Goswin von Brederlow
2007-09-14 18:44       ` Stefan Richter
2007-09-08 16:07 ` Andi Kleen
2007-09-08 16:50   ` Randy Dunlap
2007-09-08 16:53     ` Matthew Wilcox
2007-09-08 18:13     ` Andi Kleen
2007-09-08 18:30       ` Stefan Richter
2007-09-08 19:14         ` Andi Kleen
2007-09-08 19:32           ` Stefan Richter
2007-09-09 21:00   ` James Bottomley
2007-09-09 21:03     ` Andi Kleen
2007-09-09 21:11       ` Jeff Garzik
2007-09-09 21:22         ` Andi Kleen
2007-09-09 21:39           ` James Bottomley
2007-09-10  6:38             ` Stefan Richter
2007-09-10 12:43               ` Rene Herman
2007-09-11 20:16           ` Bauke Jan Douma
2007-09-12 22:46         ` Adrian Bunk
2007-09-14 14:54           ` Stefan Richter
2007-09-14 15:15             ` Adrian Bunk
2007-09-14 15:37               ` Stefan Richter
2007-09-14 16:01                 ` [PATCH] SCSI: update Kconfig help text to indicate SCSI core's widespread usage Stefan Richter
2007-09-14 16:29                   ` Jeff Garzik
2007-09-14 18:02                   ` [RFC PATCH] SCSI: split Kconfig menu into two Stefan Richter
2007-09-14 18:04                     ` [PATCH] SCSI: trailing whitespace in Kconfig Stefan Richter
2007-09-14 19:00                     ` [RFC PATCH] SCSI: split Kconfig menu into two Sam Ravnborg
2007-09-14 19:06                       ` Adrian Bunk
2007-09-14 20:01                         ` Stefan Richter
2007-09-15 11:40                           ` Adrian Bunk [this message]
2007-09-15 12:24                             ` Stefan Richter
2007-09-15 12:50                               ` Adrian Bunk
2007-09-15 13:20                                 ` Stefan Richter
2007-09-15 13:53                                   ` Adrian Bunk
2007-09-15 14:11                                     ` Stefan Richter
2007-09-15 14:43                                       ` Adrian Bunk
2007-09-15 15:27                                         ` Stefan Richter
2007-09-15 15:44                                           ` Jeff Garzik
2007-09-15 16:23                                             ` Adrian Bunk
2007-09-15 16:52                                               ` Bartlomiej Zolnierkiewicz
2007-09-15 19:17                                                 ` Jeff Garzik
2007-09-15 20:54                                                   ` Bartlomiej Zolnierkiewicz
2007-09-16 20:12                                               ` Greg KH
2007-09-15 16:42                                           ` Adrian Bunk
2007-09-17 11:29                               ` Maciej W. Rozycki
2007-09-17 14:46                                 ` Stefan Richter
2007-09-14 20:20                     ` Stefan Richter
2007-09-14 21:22                       ` [PATCH update] " Stefan Richter
2007-09-14 18:54                   ` [PATCH] SCSI: update Kconfig help text to indicate SCSI core's widespread usage Lennart Sorensen
2007-09-14 20:14                     ` Stefan Richter
2007-09-14 20:21                       ` Lennart Sorensen
2007-09-14 21:06                         ` Stefan Richter
2007-09-14 21:11                           ` Lennart Sorensen
2007-09-14 21:14                           ` [PATCH update] " Stefan Richter
2007-09-14 22:02                             ` FUJITA Tomonori
2007-09-15  6:16                               ` Stefan Richter
2007-09-15 10:52                                 ` FUJITA Tomonori
2007-09-15 12:30                                   ` Stefan Richter
2007-09-15 12:53                                     ` FUJITA Tomonori
2007-09-15 12:59                             ` Adrian Bunk
2007-09-15 13:19                               ` Stefan Richter
2007-09-14 16:16                 ` sata & scsi suggestion for make menuconfig Adrian Bunk
2007-09-14 16:50                   ` Stefan Richter
2007-09-15  8:04               ` Paul Rolland
2007-09-15  8:25                 ` Stefan Richter
2007-09-15 13:00                   ` Paul Rolland
2007-09-15 15:50                     ` x86_64 usability bug: Kconfig prompt without help text (was Re: sata & scsi suggestion for make menuconfig) Stefan Richter
2007-09-15 16:21                       ` Andi Kleen
2007-09-15 17:13                         ` [PATCH] x86_64: configure HPET_EMULATE_RTC automatically Stefan Richter
2007-09-15 18:23                 ` sata & scsi suggestion for make menuconfig david

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070915114055.GP3563@stusta.de \
    --to=bunk@kernel.org \
    --cc=andi@firstfloor.org \
    --cc=folkert@vanheusden.com \
    --cc=james.bottomley@steeleye.com \
    --cc=jeff@garzik.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=sam@ravnborg.org \
    --cc=stefanr@s5r6.in-berlin.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox