Skip to content
Commit 1c1464c2 authored by Jean-Jacques Hiblot's avatar Jean-Jacques Hiblot Committed by Tom Rini
Browse files

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: default avatarJean-Jacques Hiblot <jjhiblot@ti.com>
Acked-by: default avatarLukasz Majewski <lukma@denx.de>
parent a36c70a3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment