commit | 128151f007f63e482dc044252dd2a4c06d1f5711 | [log] [tgz] |
---|---|---|
author | Jean-Jacques Hiblot <jjhiblot@ti.com> | Tue Jan 22 16:48:16 2019 +0100 |
committer | Tom Rini <trini@konsulko.com> | Fri Feb 01 09:09:40 2019 -0500 |
tree | f4383eeb4a4b48572e602635dd7e72ee8a925a0c | |
parent | 5c94414a4fd97e835cdbbe27e832222d61d49910 [diff] |
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>