]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] USB Storage: remove dependency on SCSI-provided serial/tag number
authorMatthew Dharm <mdharm-usb@one-eyed-alien.net>
Thu, 28 Jul 2005 21:43:08 +0000 (14:43 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 8 Sep 2005 23:22:54 +0000 (16:22 -0700)
commit0f64e078139109d1902e5b1274c23cec9a9ad12e
tree282cb78a17c0ed2dc403dc7712cda1fc348e2123
parent9a57116bc9e36c9accc869f666e1d25c5e2cdcbf
[PATCH] USB Storage: remove dependency on SCSI-provided serial/tag number

This patch started life as as531 from Alan Stern.  It has been rediffed
against the latest tree.

The SCSI people have deprecated the use of scsi_cmnd.serial_number for
anything other than printk.  Worse than that, the SCSI core doesn't
always increment the number (when the error handler is running, for
example).  So this patch creates a locally-stored value for use in
bulk-only tags.  The net result is a simplification, since we no longer
have to save & restore the serial_number value while autosensing.

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>
drivers/usb/storage/transport.c
drivers/usb/storage/usb.h