android_kernel_samsung_msm8976/drivers
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
..
acorn
acpi
atm
base [PATCH] root hub changes (lesser half) 2005-10-28 16:47:40 -07:00
block [PATCH] ub: suppress gcc warnings for pointer casts 2005-10-28 16:47:38 -07:00
bluetooth [Bluetooth] Ignore additional interfaces of BPA 100/105 devices 2005-10-28 19:20:57 +02:00
cdrom
char Merge ../bleed-2.6 2005-10-28 10:13:16 -07:00
connector
cpufreq [PATCH] cpufreq: SMP fix for conservative governor 2005-10-27 16:29:24 -07:00
crypto
dio
eisa
fc4
firmware
hwmon [PATCH] hwmon: smsc47m1 documentation update 2005-10-28 14:02:14 -07:00
i2c [PATCH] I2C: remove devfs support from i2c-dev driver 2005-10-28 14:02:14 -07:00
ide [PATCH] Driver Core: fix up all callers of class_device_create() 2005-10-28 09:52:52 -07:00
ieee1394 Merge ../bleed-2.6 2005-10-28 10:13:16 -07:00
infiniband Merge ../bleed-2.6 2005-10-28 10:13:16 -07:00
input Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6 2005-10-28 13:09:47 -07:00
isdn [PATCH] Driver Core: fix up all callers of class_device_create() 2005-10-28 09:52:52 -07:00
macintosh [PATCH] Input: convert drivers/macintosh to dynamic input_dev allocation 2005-10-28 09:52:53 -07:00
mca
md [PATCH] gfp_t: remaining bits of drivers/* 2005-10-28 08:16:51 -07:00
media [PATCH] DRIVER MODEL: Get rid of the obsolete tri-level suspend/resume callbacks 2005-10-28 09:52:56 -07:00
message [PATCH] Driver Core: fix up all callers of class_device_create() 2005-10-28 09:52:52 -07:00
mfd [PATCH] DRIVER MODEL: Get rid of the obsolete tri-level suspend/resume callbacks 2005-10-28 09:52:56 -07:00
misc
mmc [MMC] wbsd suspend support 2005-10-28 21:37:29 +01:00
mtd Merge ../bleed-2.6 2005-10-28 10:13:16 -07:00
net Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6 2005-10-28 13:09:47 -07:00
nubus
oprofile
parisc Auto-update from upstream 2005-10-28 12:18:07 -04:00
parport [PARISC] Convert parisc_device to use struct resource for hpa 2005-10-21 22:36:40 -04:00
pci [PATCH] USB: move handoff code 2005-10-28 16:47:38 -07:00
pcmcia pcmcia: add socket register data to sysfs for yenta devices 2005-10-28 13:55:08 -07:00
pnp
s390 Merge ../bleed-2.6 2005-10-28 10:13:16 -07:00
sbus
scsi [PATCH] PCI: Convert megaraid to use pci_driver shutdown method 2005-10-28 15:37:01 -07:00
serial Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6 2005-10-28 13:09:47 -07:00
sh
sn
tc
telephony
usb [PATCH] PATCH: usb-storage: move GetMaxLUN later in time 2005-10-28 16:47:50 -07:00
video [PATCH] pci_ids: macros: replace partial with whole symbols 2005-10-28 15:36:59 -07:00
w1
zorro
Kconfig
Makefile [PATCH] USB: move handoff code 2005-10-28 16:47:38 -07:00