diff options
author | Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> | 2011-03-24 07:20:13 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-04-13 19:24:04 -0400 |
commit | 806e8f8fcc27e1753947bd9f059ba2316cf8f92a (patch) | |
tree | 939324f5fa4041bb9d66642e1b6df842d93f4d59 /drivers/usb/gadget/storage_common.c | |
parent | 088c64f812847b3623b03d167ed329f90f3e38a4 (diff) |
usb: usb_storage: do not align length of request for CBW to maxp size
Mass-storage and file-storage gadgets align the length to maximum-packet-size
when preparing the request to receive CBW. This is unnecessary and prevents the
controller driver from knowing that a short-packet is expected.
It is incorrect to set short_not_ok when preparing the request to receive CBW.
CBW will be a short-packet so short_not_ok must not be set.
This makes bh->bulk_out_intended_length unnecessary so it is also removed.
Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget/storage_common.c')
-rw-r--r-- | drivers/usb/gadget/storage_common.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/usb/gadget/storage_common.c b/drivers/usb/gadget/storage_common.c index b015561fd602..3179b8bb6ced 100644 --- a/drivers/usb/gadget/storage_common.c +++ b/drivers/usb/gadget/storage_common.c | |||
@@ -286,13 +286,6 @@ struct fsg_buffhd { | |||
286 | enum fsg_buffer_state state; | 286 | enum fsg_buffer_state state; |
287 | struct fsg_buffhd *next; | 287 | struct fsg_buffhd *next; |
288 | 288 | ||
289 | /* | ||
290 | * The NetChip 2280 is faster, and handles some protocol faults | ||
291 | * better, if we don't submit any short bulk-out read requests. | ||
292 | * So we will record the intended request length here. | ||
293 | */ | ||
294 | unsigned int bulk_out_intended_length; | ||
295 | |||
296 | struct usb_request *inreq; | 289 | struct usb_request *inreq; |
297 | int inreq_busy; | 290 | int inreq_busy; |
298 | struct usb_request *outreq; | 291 | struct usb_request *outreq; |