u-boot-brain/drivers/usb
Lukasz Majewski f7b4162eb1 usb:composite:fix Provide function data when addressing device with only one interface
This commit fixes problems with some non-standard requests send with
device address instead of interface address (bmRequestType.Receipent field).

This happens with dfu-util (debian version: 0.5), which address non standard
requests (like w_value=0x21 and bRequest=GET_DESCRIPTOR) to device.
Without this fix, the above request is STALLED, and hence causes dfu-util
to assume some standard configuration (packet size = 1024B instead of 4096B)
In turn it displays following errors:
Error obtaining DFU functional descriptor
Warning: Assuming DFU version 1.0
Warning: Transfer size can not be detected
...
Warning: Trying default transfer size 1024

This fix allows passing non-standard request to function setup code, where
it shall be handled.

Tested at: 	Trats (exynos4210)
Tested with:DFU and UMS gadgets

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
2013-03-18 18:58:52 +01:00
..
eth usb: add support for multiple usb controllers 2012-10-15 11:54:00 -07:00
gadget usb:composite:fix Provide function data when addressing device with only one interface 2013-03-18 18:58:52 +01:00
host usb/host/ehci: Add support for EHCI on spear 2013-03-16 21:12:02 +01:00
musb usb: use linux/usb/ch9.h instead of usbdescriptors.h 2012-11-20 00:16:06 +01:00
musb-new musb-new: omap2plus backend driver 2012-11-20 00:16:08 +01:00
phy Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
ulpi usb: ulpi: add indicator configuration function 2012-10-15 11:54:01 -07:00