linux/drivers/usb/gadget
Alan Stern ee81b3e086 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>
2011-04-13 16:24:06 -07:00
..
amd5536udc.c Fix common misspellings 2011-03-31 11:26:23 -03:00
amd5536udc.h Fix common misspellings 2011-03-31 11:26:23 -03:00
at91_udc.c Fix common misspellings 2011-03-31 11:26:23 -03:00
at91_udc.h
atmel_usba_udc.c USB: atmel_usba_udc: fix freeing irq in usba_udc_remove() 2010-12-16 13:36:12 -08:00
atmel_usba_udc.h
audio.c
cdc2.c
ci13xxx_msm.c USB: gadget: Implement runtime PM for MSM bus glue driver 2010-12-10 14:23:34 -08:00
ci13xxx_pci.c USB: gadget: Introduce ci13xxx_udc_driver struct 2010-12-10 14:23:33 -08:00
ci13xxx_udc.c USB: gadget: Add test mode support for ci13xxx_udc 2011-02-25 11:33:57 -08:00
ci13xxx_udc.h USB: gadget: Add test mode support for ci13xxx_udc 2011-02-25 11:33:57 -08:00
composite.c Fix common misspellings 2011-03-31 11:26:23 -03:00
config.c
dbgp.c
dummy_hcd.c USB 3.0 Hub Changes 2011-03-13 18:07:11 -07:00
epautoconf.c USB: Gadget: Initialize wMaxPacketSize if not already set 2011-02-04 11:42:52 -08:00
ether.c
f_acm.c
f_audio.c Fix common misspellings 2011-03-31 11:26:23 -03:00
f_ecm.c
f_eem.c
f_fs.c USB: gadget: f_fs: even zero-length packets require a buffer 2011-02-04 11:57:22 -08:00
f_hid.c
f_loopback.c
f_mass_storage.c USB: g_file_storage: don't send padding when stall=n 2011-04-13 16:24:06 -07:00
f_ncm.c Fix common misspellings 2011-03-31 11:26:23 -03:00
f_obex.c
f_phonet.c f_phonet: avoid pskb_pull(), fix OOPS with CONFIG_HIGHMEM 2011-02-28 12:36:39 -08:00
f_rndis.c
f_serial.c
f_sourcesink.c
f_subset.c
f_uvc.c
f_uvc.h
file_storage.c USB: g_file_storage: don't send padding when stall=n 2011-04-13 16:24:06 -07:00
fsl_mxc_udc.c usb: gadget/fsl_mxc_udc: Detect the CPU type in run-time 2011-02-04 11:42:52 -08:00
fsl_qe_udc.c dt/usb: Eliminate users of of_platform_{,un}register_driver 2011-02-28 13:22:45 -07:00
fsl_qe_udc.h Fix common misspellings 2011-03-31 11:26:23 -03:00
fsl_udc_core.c Fix common misspellings 2011-03-31 11:26:23 -03:00
fsl_usb2_udc.h Fix common misspellings 2011-03-31 11:26:23 -03:00
fusb300_udc.c usb: fusb300_udc: add more "ep%d" names 2011-02-17 10:47:55 -08:00
fusb300_udc.h usb: udc: add Faraday fusb300 driver 2011-01-22 19:45:36 -08:00
g_ffs.c
g_zero.h
gadget_chips.h usb: renesas_usbhs: Add Renesas USBHS Gadget 2011-04-13 16:07:07 -07:00
gmidi.c Fix common misspellings 2011-03-31 11:26:23 -03:00
goku_udc.c
goku_udc.h
hid.c
imx_udc.c Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2011-01-13 10:05:56 -08:00
imx_udc.h
inode.c
Kconfig usb: renesas_usbhs: Add Renesas USBHS Gadget 2011-04-13 16:07:07 -07:00
langwell_udc.c Fix common misspellings 2011-03-31 11:26:23 -03:00
langwell_udc.h
m66592-udc.c usb: m66592-udc: Fixed bufnum of Bulk 2011-02-25 11:33:00 -08:00
m66592-udc.h
Makefile Merge branch 'remove' of master.kernel.org:/home/rmk/linux-2.6-arm 2011-03-16 19:05:40 -07:00
mass_storage.c
multi.c
mv_udc.h
mv_udc_core.c Fix common misspellings 2011-03-31 11:26:23 -03:00
mv_udc_phy.c
ncm.c usb: gadget: g_ncm added 2010-12-10 14:29:43 -08:00
ndis.h
net2280.c Fix common misspellings 2011-03-31 11:26:23 -03:00
net2280.h
nokia.c Fix common misspellings 2011-03-31 11:26:23 -03:00
omap_udc.c
omap_udc.h
pch_udc.c usb: pch_udc: Fixed issue which does not work with g_ether 2011-02-17 10:47:54 -08:00
printer.c Fix common misspellings 2011-03-31 11:26:23 -03:00
pxa25x_udc.c ARM: pxa25x_udc: stop handling gpio-vbus internally 2011-03-16 16:33:34 +08:00
pxa25x_udc.h
pxa27x_udc.c Fix common misspellings 2011-03-31 11:26:23 -03:00
pxa27x_udc.h
r8a66597-udc.c usb: r8a66597-udc: Fixed bufnum of Bulk 2011-02-03 16:45:50 -08:00
r8a66597-udc.h
rndis.c
rndis.h
s3c-hsotg.c Fix common misspellings 2011-03-31 11:26:23 -03:00
s3c2410_udc.c USB: s3c2410_udc: Add common implementation for GPIO controlled pullups 2011-03-07 12:23:22 -08:00
s3c2410_udc.h
serial.c
storage_common.c usb: usb_storage: do not align length of request for CBW to maxp size 2011-04-13 16:24:04 -07:00
u_audio.c
u_audio.h
u_ether.c usb-gadget: fix warning in ethernet 2011-03-02 19:52:29 -05:00
u_ether.h usb: gadget: f_ncm.c added 2010-12-10 14:29:43 -08:00
u_phonet.h
u_serial.c
u_serial.h
usbstring.c
uvc.h
uvc_queue.c
uvc_queue.h
uvc_v4l2.c
uvc_video.c
webcam.c
zero.c