summaryrefslogtreecommitdiffstats
path: root/drivers/usb/storage/usb.h
diff options
context:
space:
mode:
authorMatthew Dharm2005-07-28 23:43:08 +0200
committerGreg Kroah-Hartman2005-09-09 01:22:54 +0200
commit0f64e078139109d1902e5b1274c23cec9a9ad12e (patch)
tree282cb78a17c0ed2dc403dc7712cda1fc348e2123 /drivers/usb/storage/usb.h
parent[PATCH] USB: Switch isp116x-hcd over to root hub interrupt (diff)
downloadkernel-qcow2-linux-0f64e078139109d1902e5b1274c23cec9a9ad12e.tar.gz
kernel-qcow2-linux-0f64e078139109d1902e5b1274c23cec9a9ad12e.tar.xz
kernel-qcow2-linux-0f64e078139109d1902e5b1274c23cec9a9ad12e.zip
[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>
Diffstat (limited to 'drivers/usb/storage/usb.h')
-rw-r--r--drivers/usb/storage/usb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/storage/usb.h b/drivers/usb/storage/usb.h
index 625b7aa98074..a195adae57b6 100644
--- a/drivers/usb/storage/usb.h
+++ b/drivers/usb/storage/usb.h
@@ -158,6 +158,7 @@ struct us_data {
/* SCSI interfaces */
struct scsi_cmnd *srb; /* current srb */
+ unsigned int tag; /* current dCBWTag */
/* thread information */
int pid; /* control thread */