android_kernel_samsung_msm8976/drivers/usb/storage
Alan Stern b876aef7f8 [PATCH] PATCH: usb-storage: move GetMaxLUN later in time
This patch is originally from Alan Stern (as557).  It has been re-diffed
against a current tree, and I also corrected a minor merging error.

Some time ago we introduced a delay before device scanning, because many
devices do not like to receive SCSI commands right after enumeration.
Now it turns out there's a device that doesn't like to receive
Get-Max-LUN right after enumeration either.  Accordingly this patch
delays the Get-Max-LUN request until the beginning of the scanning
procedure.  This fixes Bugzilla entry #5010.

Three things are worth noting.  First, I removed the locking code from
usb_stor_acquire_resources.  It's not needed, because the locking is to
protect against disconnect events and acquire_resources is only called
during probe (so the disconnect routine can't be called).  Second, I
initialized to 0 the buffer used for the Get-Max-LUN response.  It's not
really necessary, but it will prevent random values from showing up in
the debugging log when the request fails.  Third, I added a test against
the SINGLE_LUN flag.  This will allow us to use the flag to indicate
Bulk-only devices that can't handle Get-Max-LUN.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Matthew Dharm <mdharm-usb@one-eyed-alien.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-10-28 16:47:50 -07:00
..
datafab.c
datafab.h
debug.c
debug.h
dpcm.c
dpcm.h
freecom.c
freecom.h
initializers.c
initializers.h
isd200.c
isd200.h
jumpshot.c
jumpshot.h
Kconfig [PATCH] USB: make usb storage note visible in Kconfig 2005-10-28 16:47:42 -07:00
Makefile [PATCH] USB Storage: add support for Maxtor One-Touch button 2005-09-08 16:22:55 -07:00
onetouch.c [PATCH] Input: convert onetouch to dynamic input_dev allocation 2005-10-28 09:52:53 -07:00
onetouch.h [PATCH] USB Storage: add support for Maxtor One-Touch button 2005-09-08 16:22:55 -07:00
protocol.c
protocol.h
scsiglue.c [PATCH] USB: storage: Fix messed-up locking 2005-09-12 12:23:50 -07:00
scsiglue.h [PATCH] USB Storage: port reset on transport error 2005-06-27 14:44:03 -07:00
sddr09.c
sddr09.h
sddr55.c
sddr55.h
shuttle_usbat.c [PATCH] usb-storage: Some minor shuttle_usbat cleanups 2005-10-28 16:47:43 -07:00
shuttle_usbat.h [PATCH] usb-storage: Some minor shuttle_usbat cleanups 2005-10-28 16:47:43 -07:00
transport.c [PATCH] PATCH: usb-storage: move GetMaxLUN later in time 2005-10-28 16:47:50 -07:00
transport.h [PATCH] usb-storage: Some minor shuttle_usbat cleanups 2005-10-28 16:47:43 -07:00
unusual_devs.h [PATCH] USB: storage patch for LEICA camera 2005-10-28 16:47:48 -07:00
usb.c [PATCH] PATCH: usb-storage: move GetMaxLUN later in time 2005-10-28 16:47:50 -07:00
usb.h [PATCH] USB Storage: remove dependency on SCSI-provided serial/tag number 2005-09-08 16:22:54 -07:00