linux/drivers/usb/misc
Sebastian Andrzej Siewior 7c79d09435 USB: usbtest: use URB_ZERO_PACKET for BULK-OUT transfers
Executing
| testusb -a -c 1 -t 3 -v 421 -s 2048

does not complete on the gadget side.
g_zero enqueues a 4096 bytes long buffer. The host sends 2048bytes which
is a multiple of wMaxPacketSize (either 64 or 512 bytes). The host is
done with sending data but the gadget waits for more.
Since the protocol does not include transfer-length-field sending a
terminating zero packet seems the only way out.

Reviewed-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-08-23 09:47:39 -07:00
..
sisusbvga usb: misc: sisusbvga: fix information leak to userland 2010-11-11 07:14:06 -08:00
Kconfig USB: add driver for Meywa-Denki & Kayac YUREX 2010-10-22 10:21:51 -07:00
Makefile usb: makefile cleanup 2010-10-22 10:22:07 -07:00
adutux.c tree-wide: fix comment/printk typos 2010-11-01 15:38:34 -04:00
appledisplay.c atomic: use <linux/atomic.h> 2011-07-26 16:49:47 -07:00
cypress_cy7c63.c USB: misc: cypress_cy7c63: fix up some sysfs attribute permissions 2010-11-15 14:04:14 -08:00
cytherm.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
emi26.c USB misc: make USB device id constant 2010-03-02 14:54:17 -08:00
emi62.c USB misc: make USB device id constant 2010-03-02 14:54:17 -08:00
ftdi-elan.c treewide: Fix recieve/receive typos 2011-06-24 11:18:57 +02:00
idmouse.c llseek: automatically add .llseek fop 2010-10-15 15:53:27 +02:00
iowarrior.c Fix common misspellings 2011-03-31 11:26:23 -03:00
isight_firmware.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
ldusb.c USB: ldusb: add several new devices 2011-05-03 10:12:00 -07:00
legousbtower.c USB: misc: Remove unnecessary casts of private_data 2010-08-10 14:35:39 -07:00
rio500.c llseek: automatically add .llseek fop 2010-10-15 15:53:27 +02:00
rio500_usb.h
trancevibrator.c USB: misc: trancevibrator: fix up a sysfs attribute permission 2010-11-15 14:04:15 -08:00
usb_u132.h
usblcd.c usb: misc: usblcd: fixed coding style issues 2011-08-22 15:21:16 -07:00
usbled.c usb: misc: usbled: fixed coding style issues 2011-08-22 15:21:16 -07:00
usbsevseg.c USB: misc: usbsevseg: fix up some sysfs attribute permissions 2010-11-15 14:04:15 -08:00
usbtest.c USB: usbtest: use URB_ZERO_PACKET for BULK-OUT transfers 2011-08-23 09:47:39 -07:00
uss720.c USB: uss720 fixup refcount position 2011-03-23 13:14:31 -07:00
yurex.c USB: yurex: add .llseek fop to file_operations 2010-11-30 10:24:50 -08:00