u-boot/drivers/usb
Rob Herring 58d6d139c3 usb: ci_udc: fix request allocation when endpoints are disabled
The ci_udc driver request allocation assumes that the endpoint descriptor
pointer is set to retrieve the endpoint number, but that is only true
when the endpoint is enabled. This results in a NULL ptr dereference
which for me happens to return 0 value. This causes the EP0 request
struct to be returned for other endpoints. Some gadget drivers like
fastboot and USB MS work fine, but ethernet does not.

Really, the ci_udc driver is the oddball here doing this EP0 special
case handling Stephen added. All the other drivers alloc/free functions
are pretty much the same with the only variation being the size of the
private struct. This could all be consolidated to a common function.

Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Marek Vasut <marex@denx.de>
Acked-by: Stephen Warren <swarren@nvidia.com>
2015-07-24 22:08:38 +02:00
..
dwc3 samsung: usb: phy: Support for DWC3 PHY 2015-06-08 15:25:44 +02:00
emul dm: usb: Add a terminator to the string destructor list 2015-04-22 11:13:24 -06:00
eth net: cosmetic: Fix var naming net <-> eth drivers 2015-04-18 11:11:33 -06:00
gadget usb: ci_udc: fix request allocation when endpoints are disabled 2015-07-24 22:08:38 +02:00
host usb: ehci-marvell: Drop wrl accessor function 2015-07-22 10:19:13 +02:00
musb include: move various macros to include/linux/kernel.h 2014-11-20 11:28:25 -05:00
musb-new sunxi: musb: Remove unused sunxi_musb_exit method 2015-06-17 15:22:42 +02:00
phy usb: xhci: omap: Remove common dwc3 drv functions calls 2015-07-22 08:55:44 +02:00
ulpi drivers: usb: convert makefiles to Kbuild style 2013-10-31 13:25:38 -04:00
Kconfig dm: usb: sandbox: Add a uclass for USB device emulation 2015-04-18 11:11:26 -06:00