]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/usb/gadget/storage_common.c
Revert "usb: usb_storage: do not align length of request for CBW to maxp size"
[karo-tx-linux.git] / drivers / usb / gadget / storage_common.c
index 86fcebd89abe9cad9f8c62b8cb7b98f9cd956a00..109635a848887b6f617d61e5776213d922e0ece7 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;