public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Marc-Christian Petersen <m.c.p@wolk-project.de>
To: linux-kernel@vger.kernel.org,
	linux-usb-devel@lists.sourceforge.net,
	Greg Kroah-Hartman <greg@kroah.com>
Cc: Russell King <rmk+lkml@arm.linux.org.uk>,
	Bill Davidsen <davidsen@tmr.com>
Subject: Re: 2.6.4: disabling SCSI support not possible
Date: Tue, 6 Apr 2004 12:46:53 +0200	[thread overview]
Message-ID: <200404061246.53847@WOLK> (raw)
In-Reply-To: <20040406094258.A15945@flint.arm.linux.org.uk>

[-- Attachment #1: Type: text/plain, Size: 1147 bytes --]

On Tuesday 06 April 2004 10:42, Russell King wrote:

Hi,

> > Intuitive isn't the issue, if you can't figure out why you can't turn
> > off SCSI, you leave it on, which you need to make USB storage work. If
> > you're trying to make a small kernel you presumably would have turned
> > off USB if you didn't want it. The other way, if you can turn on USB w/o
> > SCSI, it won't work, and people thing Linux is broken.

> When I hit it, I was trying to build a kernel for test purposes, so I
> didn't want all the drivers turned on.  I found I couldn't turn off
> SCSI and continued anyway turning other things off.  However, USB appears
> _after_ SCSI, you can not go through the configuration logically to turn
> off features.  Moreover, you do not get any suggestion when attempting
> to turn SCSI off that you need to turn off USB.

may I propose the following two patches?

01_menu-Kconfig-cleanups-08-usb-menu-indent-fix.patch
	Fix up indents in the USB Input menu

02_menu-Kconfig-cleanups-09-USB-vs-SCSI-fix.patch
	Fix SCSI dependency for USB-Storage support.
	- Rip out "select SCSI"
	- Make a comment when SCSI is not selected

ciao, Marc

[-- Attachment #2: 01_menu-Kconfig-cleanups-08-usb-menu-indent-fix.patch --]
[-- Type: text/x-diff, Size: 2122 bytes --]

diff -Naurp linux-2.6.4-rc1/drivers/usb/input/Kconfig linux-2.6.4-rc1-modified/drivers/usb/input/Kconfig
--- linux-2.6.4-rc1/drivers/usb/input/Kconfig	2004-03-07 20:51:35.000000000 +0100
+++ linux-2.6.4-rc1-modified/drivers/usb/input/Kconfig	2004-03-07 21:00:15.000000000 +0100
@@ -29,7 +29,7 @@ comment "Input core support is needed fo
 config USB_HIDINPUT
 	bool "HID input layer support"
 	default y
-	depends on INPUT && USB_HID
+	depends on INPUT && USB && USB_HID
 	help
 	  Say Y here if you want to use a USB keyboard, mouse or joystick,
 	  or any other HID input device. You also need "Input core support", 
@@ -39,7 +39,7 @@ config USB_HIDINPUT
 
 config HID_FF
 	bool "Force feedback support (EXPERIMENTAL)"
-	depends on USB_HIDINPUT && EXPERIMENTAL
+	depends on USB && USB_HIDINPUT && EXPERIMENTAL
 	help
 	  Say Y here is you want force feedback support for a few HID devices.
 	  See below for a list of supported devices.
@@ -51,7 +51,7 @@ config HID_FF
 
 config HID_PID
 	bool "PID Devices (Microsoft Sidewinder Force Feedback 2)"
-	depends on HID_FF
+	depends on USB && HID_FF
 	help
 	  Say Y here if you have a PID-compliant joystick and wish to enable force
 	  feedback for it. The Microsoft Sidewinder Force Feedback 2 is one such
@@ -59,7 +59,7 @@ config HID_PID
 
 config LOGITECH_FF
 	bool "Logitech WingMan *3D support"
-	depends on HID_FF
+	depends on USB && HID_FF
 	help
 	  Say Y here if you have one of these devices:
 	  - Logitech WingMan Cordless RumblePad
@@ -70,7 +70,7 @@ config LOGITECH_FF
 
 config THRUSTMASTER_FF
 	bool "ThrustMaster FireStorm Dual Power 2 support (EXPERIMENTAL)"
-	depends on HID_FF && EXPERIMENTAL
+	depends on USB && HID_FF && EXPERIMENTAL
 	help
 	  Say Y here if you have a THRUSTMASTER FireStore Dual Power 2,
 	  and want to enable force feedback support for it.
@@ -79,7 +79,7 @@ config THRUSTMASTER_FF
 
 config USB_HIDDEV
 	bool "/dev/hiddev raw HID device support"
-	depends on USB_HID
+	depends on USB && USB_HID
 	help
 	  Say Y here if you want to support HID devices (from the USB
 	  specification standpoint) that aren't strictly user interface

[-- Attachment #3: 02_menu-Kconfig-cleanups-09-USB-vs-SCSI-fix.patch --]
[-- Type: text/x-diff, Size: 915 bytes --]

diff -Naurp linux-2.6.4-wolk2.4-fullkernel/drivers/usb/storage/Kconfig linux-2.6.4-wolk2.4-USB-stuff/drivers/usb/storage/Kconfig
--- linux-2.6.4-wolk2.4-fullkernel/drivers/usb/storage/Kconfig	2004-04-05 17:10:21.000000000 +0200
+++ linux-2.6.4-wolk2.4-USB-stuff/drivers/usb/storage/Kconfig	2004-04-06 12:30:55.000000000 +0200
@@ -2,10 +2,9 @@
 # USB Storage driver configuration
 #
 
-config USB_STORAGE
+menuconfig USB_STORAGE
 	tristate "USB Mass Storage support"
-	depends on USB
-	select SCSI
+	depends on USB && SCSI
 	---help---
 	  Say Y here if you want to connect USB mass storage devices to your
 	  computer's USB port. This is the driver you need for USB floppy drives,
@@ -89,3 +88,5 @@ config USB_STORAGE_JUMPSHOT
 	  Say Y here to include additional code to support the Lexar Jumpshot
 	  USB CompactFlash reader.
 
+comment "SCSI support is needed for USB Storage support"
+	depends on USB && !SCSI

  reply	other threads:[~2004-04-06 10:55 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-02 13:09 2.6.4: disabling SCSI support not possible Olaf Zaplinski
2004-04-02 13:18 ` Grzegorz Kulewski
2004-04-02 13:21 ` Sean Neakums
2004-04-02 13:42   ` Russell King
2004-04-02 14:03     ` Marc-Christian Petersen
2004-04-02 16:59     ` Greg KH
2004-04-02 17:16       ` Russell King
2004-04-02 17:56         ` Kevin P. Fleming
2004-04-02 18:14         ` Greg KH
2004-04-05 22:17         ` Bill Davidsen
2004-04-06  8:42           ` Russell King
2004-04-06 10:46             ` Marc-Christian Petersen [this message]
2004-04-06 11:03               ` Marc-Christian Petersen
2004-04-02 19:29     ` Ricky Beam

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=200404061246.53847@WOLK \
    --to=m.c.p@wolk-project.de \
    --cc=davidsen@tmr.com \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb-devel@lists.sourceforge.net \
    --cc=rmk+lkml@arm.linux.org.uk \
    /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