Revert "usb: usb_storage: do not align length of request for CBW to maxp size"
[pandora-kernel.git] / drivers / usb / gadget / storage_common.c
index 86fcebd..109635a 100644 (file)
@@ -286,6 +286,13 @@ struct fsg_buffhd {
        enum fsg_buffer_state           state;
        struct fsg_buffhd               *next;
 
+       /*
+        * The NetChip 2280 is faster, and handles some protocol faults
+        * better, if we don't submit any short bulk-out read requests.
+        * So we will record the intended request length here.
+        */
+       unsigned int                    bulk_out_intended_length;
+
        struct usb_request              *inreq;
        int                             inreq_busy;
        struct usb_request              *outreq;