u-boot-brain/drivers/usb
Sam Protsenko 8038f6d288 usb: gadget: composite: Correct recovery path for register
In case when usb_composite_register() failed once (for whatever reason),
it will fail further even if all conditions are correct. Example:

    => fastboot 2
    Invalid Controller Index
    couldn't find an available UDC
    g_dnl_register: failed!, error: -19
    exit not allowed from main input shell.

    => fastboot 0
    g_dnl_register: failed!, error: -22
    exit not allowed from main input shell.

Despite that 0 is correct index for USB controller, "fastboot 0" command
will fail, because "composite" structure wasn't cleared properly on
previous fail (on "fastboot 2" command).

This patch fixes that erroneous behavior, allowing us to use composite
even after previous failure.

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
2016-03-01 14:47:26 +01:00
..
dwc3 bug.h: move BUILD_BUG_* defines to include/linux/bug.h 2016-01-25 10:39:59 -05:00
emul usb: sandbox: Add a USB emulation driver 2015-11-19 20:27:52 -07:00
eth usb: eth: fix memalign() parameter order 2016-02-24 19:12:33 +01:00
gadget usb: gadget: composite: Correct recovery path for register 2016-03-01 14:47:26 +01:00
host usb: ehci: Fix warning on aarch64 2016-02-26 19:45:05 +01:00
musb Add more SPDX-License-Identifier tags 2016-01-19 08:31:21 -05:00
musb-new Add more SPDX-License-Identifier tags 2016-01-19 08:31:21 -05:00
phy usb: xhci: omap: Remove common dwc3 drv functions calls 2015-07-22 08:55:44 +02:00
ulpi Add more SPDX-License-Identifier tags 2016-01-19 08:31:21 -05:00
Kconfig usb: musb-new: Kconfig support for USB_MUSB_HOST and USB_MUSB_GADGET 2015-08-05 17:20:34 +02:00