linux/drivers/usb/storage
Alan Stern 011b15df46 USB: change interface to usb_lock_device_for_reset()
This patch (as1161) changes the interface to
usb_lock_device_for_reset().  The existing interface is apparently not
very clear, judging from the fact that several of its callers don't
use it correctly.  The new interface always returns 0 for success and
it always requires the caller to unlock the device afterward.

The new routine will not return immediately if it is called while the
driver's probe method is running.  Instead it will wait until the
probe is over and the device has been unlocked.  This shouldn't cause
any problems; I don't know of any cases where drivers call
usb_lock_device_for_reset() during probe.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Cc: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-01-07 09:59:52 -08:00
..
alauda.c USB storage: sg chaining support 2007-10-16 11:20:59 +02:00
alauda.h
cypress_atacb.c [SCSI] Let scsi_cmnd->cmnd use request->cmd buffer 2008-05-02 10:18:22 -05:00
cypress_atacb.h USB: mass storage: emulation of sat scsi_pass_thru with ATACB 2008-04-24 21:16:42 -07:00
datafab.c USB: remove CVS keywords 2008-07-21 15:15:55 -07:00
datafab.h
debug.c USB: remove CVS keywords 2008-07-21 15:15:55 -07:00
debug.h USB: remove CVS keywords 2008-07-21 15:15:55 -07:00
dpcm.c USB: remove CVS keywords 2008-07-21 15:15:55 -07:00
dpcm.h USB: remove CVS keywords 2008-07-21 15:15:55 -07:00
freecom.c remove unnecessary <linux/hdreg.h> includes 2008-08-05 18:16:58 +02:00
freecom.h USB: remove CVS keywords 2008-07-21 15:15:55 -07:00
initializers.c USB: support Huawei data card product IDs 2008-10-22 10:05:28 -07:00
initializers.h USB: remove CVS keywords 2008-07-21 15:15:55 -07:00
isd200.c USB: remove CVS keywords 2008-07-21 15:15:55 -07:00
isd200.h
jumpshot.c USB: remove CVS keywords 2008-07-21 15:15:55 -07:00
jumpshot.h
karma.c
karma.h
Kconfig USB: storage: adjust comment in Kconfig 2008-11-13 14:45:03 -08:00
libusual.c usb: libusual kthread_run() called with wrong format. 2008-05-02 10:25:51 -07:00
Makefile USB Storage: Sierra: Non-configurable TRU-Install 2008-09-23 13:58:05 -07:00
onetouch.c USB: remove err() macro from more usb drivers 2008-10-17 14:41:14 -07:00
onetouch.h
protocol.c USB: remove CVS keywords 2008-07-21 15:15:55 -07:00
protocol.h USB: remove CVS keywords 2008-07-21 15:15:55 -07:00
scsiglue.c usb-storage: revert DMA-alignment change for Wireless USB 2008-07-21 15:16:51 -07:00
scsiglue.h USB: remove CVS keywords 2008-07-21 15:15:55 -07:00
sddr09.c USB: remove CVS keywords 2008-07-21 15:15:55 -07:00
sddr09.h USB: remove CVS keywords 2008-07-21 15:15:55 -07:00
sddr55.c USB: remove CVS keywords 2008-07-21 15:15:55 -07:00
sddr55.h USB: remove CVS keywords 2008-07-21 15:15:55 -07:00
shuttle_usbat.c USB: remove CVS keywords 2008-07-21 15:15:55 -07:00
shuttle_usbat.h USB: remove CVS keywords 2008-07-21 15:15:55 -07:00
sierra_ms.c USB Storage Sierra: TRU-Install feature update 2008-08-13 17:32:51 -07:00
sierra_ms.h USB Storage Sierra: TRU-Install feature update 2008-08-13 17:32:51 -07:00
transport.c USB: change interface to usb_lock_device_for_reset() 2009-01-07 09:59:52 -08:00
transport.h USB: remove CVS keywords 2008-07-21 15:15:55 -07:00
unusual_devs.h USB: storage: unusual_devs.h additions for Macpower MasterBox 2009-01-07 09:59:49 -08:00
usb.c USB Storage: Sierra: Non-configurable TRU-Install 2008-09-23 13:58:05 -07:00
usb.h USB: remove CVS keywords 2008-07-21 15:15:55 -07:00