]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
USB: uas: Fix up the Sense IU
authorMatthew Wilcox <matthew@wil.cx>
Wed, 15 Dec 2010 20:44:02 +0000 (15:44 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 15 Dec 2010 23:26:43 +0000 (15:26 -0800)
Add a comment to the Sense IU data structure that it's also used for Read
Ready and Write Ready.  Remove the 'service response' element since it's
gone from the current draft (04).

Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/storage/uas.c

index 2054b1e25a6554e3e62e8c96c9ccb8b4dc7fa893..3c7a24433784a168f2a5dc36c8442e58277bc377 100644 (file)
@@ -49,14 +49,17 @@ struct command_iu {
        __u8 cdb[16];   /* XXX: Overflow-checking tools may misunderstand */
 };
 
+/*
+ * Also used for the Read Ready and Write Ready IUs since they have the
+ * same first four bytes
+ */
 struct sense_iu {
        __u8 iu_id;
        __u8 rsvd1;
        __be16 tag;
        __be16 status_qual;
        __u8 status;
-       __u8 service_response;
-       __u8 rsvd8[6];
+       __u8 rsvd7[7];
        __be16 len;
        __u8 sense[SCSI_SENSE_BUFFERSIZE];
 };