diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2011-03-25 16:46:27 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-04-14 01:24:06 +0200 |
commit | ee81b3e086c907a3347b15ef219a24fc8bf900f6 (patch) | |
tree | 6ab1d90bc0ab2282c86dc332e97edf8df60559c9 /drivers/usb/host/sl811-hcd.c | |
parent | USB: remove dead code from usb_deregister_dev() (diff) | |
download | linux-ee81b3e086c907a3347b15ef219a24fc8bf900f6.tar.xz linux-ee81b3e086c907a3347b15ef219a24fc8bf900f6.zip |
USB: g_file_storage: don't send padding when stall=n
This patch (as1455) removes the extra padding sent by g_file_storage
and g_mass_storage when the gadget wants to send less data than
requested by the host and isn't allowed to halt the bulk-IN endpoint.
Although the Bulk-Only Transport specification requires the padding to
be present, it isn't truly needed since the transfer will be terminated
by a short packet anyway. Furthermore, many existing devices don't
bother to send any padding.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Acked-By: Michal Nazarewicz <mina86@mina86.com>
CC: Roger Quadros <roger.quadros@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/sl811-hcd.c')
0 files changed, 0 insertions, 0 deletions