alistair23-linux/drivers/usb/gadget
Alan Stern e9238221d3 USB: dummy-hcd: accept mismatch between wLength and transfer length
This patch (as1269) fixes a bug in the way dummy_hcd handles control
URBs.  Currently it returns a -EOVERFLOW error if the wLength value in
the setup packet is different from the URB's transfer_buffer_length.

Other host controller drivers don't do this.  There's no reason the
two length values have to be equal, and in fact they sometimes aren't
-- a driver might set the transfer length to the maxpacket value in
order to handle buggy devices that don't respect wLength.

This patch simply removes the unnecessary check and error return.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-23 06:46:30 -07:00
..
amd5536udc.c USB: gadget: Drop NULL test on list_entry result 2009-09-23 06:46:28 -07:00
amd5536udc.h
at91_udc.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6 2009-06-16 13:06:10 -07:00
at91_udc.h
atmel_usba_udc.c USB: atmel_usba_udc: change way of specifying bias function 2009-06-15 21:44:47 -07:00
atmel_usba_udc.h
audio.c USB audio gadget: Prefix all macro definitions with UAC_ in linux/usb/audio.h 2009-09-23 06:46:20 -07:00
cdc2.c
ci13xxx_udc.c
ci13xxx_udc.h
composite.c
config.c
dummy_hcd.c USB: dummy-hcd: accept mismatch between wLength and transfer length 2009-09-23 06:46:30 -07:00
epautoconf.c
ether.c USB: RNDIS gadget, fix issues talking from PXA 2009-07-12 15:16:39 -07:00
f_acm.c
f_audio.c USB audio gadget: Un-inline generic_[gs]et_cmd 2009-09-23 06:46:20 -07:00
f_ecm.c
f_loopback.c
f_obex.c
f_phonet.c f_phonet: use page-sized rather than MTU-sized RX buffers 2009-08-12 20:44:49 -07:00
f_rndis.c USB: gadget : Fix RNDIS code to pass USB Compliance tests (USBCV) with g_ether 2009-06-15 21:44:46 -07:00
f_serial.c
f_sourcesink.c
f_subset.c
file_storage.c USB: g_file_storage: use the "unaligned" accessors 2009-06-15 21:44:44 -07:00
fsl_mx3_udc.c USB: gadget: Add i.MX3x support to the fsl_usb2_udc driver 2009-06-15 21:44:47 -07:00
fsl_qe_udc.c
fsl_qe_udc.h
fsl_udc_core.c USB: gadget: Add i.MX3x support to the fsl_usb2_udc driver 2009-06-15 21:44:47 -07:00
fsl_usb2_udc.h USB: gadget: Add i.MX3x support to the fsl_usb2_udc driver 2009-06-15 21:44:47 -07:00
g_zero.h
gadget_chips.h usb: gadget: R8A66597 peripheral controller support. 2009-08-20 10:25:30 +09:00
gmidi.c USB audio gadget: Prefix all macro definitions with UAC_ in linux/usb/audio.h 2009-09-23 06:46:20 -07:00
goku_udc.c USB: Goku-S: use helper functions to determine endpoint type and direction 2009-06-15 21:44:42 -07:00
goku_udc.h
imx_udc.c USB: gadget: imx_udc: don't queue more data when zlp is to be sent 2009-06-15 21:44:46 -07:00
imx_udc.h
inode.c const: mark remaining super_operations const 2009-09-22 07:17:24 -07:00
Kconfig usb: gadget: R8A66597 peripheral controller support. 2009-08-20 10:25:30 +09:00
langwell_udc.c headers: smp_lock.h redux 2009-07-12 12:22:34 -07:00
langwell_udc.h USB: Add Intel Langwell USB Device Controller driver 2009-06-15 21:44:47 -07:00
lh7a40x_udc.c
lh7a40x_udc.h
m66592-udc.c usb: gadget: m66592-udc needs linux/err.h. 2009-08-24 22:45:15 +09:00
m66592-udc.h usb: m66592-udc platform data on_chip support 2009-07-23 13:04:15 +09:00
Makefile usb: gadget: R8A66597 peripheral controller support. 2009-08-20 10:25:30 +09:00
ndis.h
net2280.c
net2280.h
omap_udc.c
omap_udc.h
printer.c
pxa25x_udc.c USB: gadget: pxa25x: basic transceiver support 2009-09-23 06:46:23 -07:00
pxa25x_udc.h USB: gadget: pxa25x: basic transceiver support 2009-09-23 06:46:23 -07:00
pxa27x_udc.c USB: pxa27x_udc: single-thread setup requests 2009-06-15 21:44:42 -07:00
pxa27x_udc.h USB: pxa27x_udc: single-thread setup requests 2009-06-15 21:44:42 -07:00
r8a66597-udc.c usb: r8a66597-udc: implement the set_wedge method 2009-08-21 08:34:08 +09:00
r8a66597-udc.h usb: r8a66597-udc: implement the set_wedge method 2009-08-21 08:34:08 +09:00
rndis.c USB: gadget: rndis conformance tweak 2009-07-12 15:16:37 -07:00
rndis.h
s3c-hsotg.c USB: gadget: s3c-hsotg: missing parentheses 2009-09-23 06:46:28 -07:00
s3c2410_udc.c headers: smp_lock.h redux 2009-07-12 12:22:34 -07:00
s3c2410_udc.h
serial.c
u_audio.c USB: gadget: add USB Audio Gadget driver 2009-06-15 21:44:47 -07:00
u_audio.h USB: gadget: add USB Audio Gadget driver 2009-06-15 21:44:47 -07:00
u_ether.c netdev: drivers should make ethtool_ops const 2009-09-02 01:03:33 -07:00
u_ether.h
u_phonet.h
u_serial.c USB: gadget: g_serial: append zlp when tx buffer becomes empty 2009-06-15 21:44:46 -07:00
u_serial.h
usbstring.c
zero.c