]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: ether: call _usb_eth_halt() if initialization fails
authorJean-Jacques Hiblot <jjhiblot@ti.com>
Tue, 22 Jan 2019 15:48:16 +0000 (16:48 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 1 Feb 2019 14:09:40 +0000 (09:09 -0500)
commit1c1464c2b19f1b96885040b8adc9cf5ba3c7b32d
treef4383eeb4a4b48572e602635dd7e72ee8a925a0c
parenta36c70a36d4660e858dd2ff43d874a3ec013b436
usb: ether: call _usb_eth_halt() if initialization fails

If the host does not respond in time, the initialization fails. However
the usb ether driver will still be registered. This will make
usb_gadget_probe_driver() fail the next time the initialization is
attempted because it cannot find an available UDC.

Fixing this by calling _usb_eth_halt() when the init fails.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Acked-by: Lukasz Majewski <lukma@denx.de>
drivers/usb/gadget/ether.c