Currently if USB fails to probe, U-Boot does not reach the console. This patch does not fail if USB fails to probe making it easier to debug in case of issues.
Signed-off-by: Markus Schneider-Pargmann (TI.com) <[email protected]> --- arch/arm/mach-omap2/am33xx/board.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/am33xx/board.c b/arch/arm/mach-omap2/am33xx/board.c index 4e9ad8935e3b5020c4ed1d022ae4846a2dc9486f..90b341303c7309dc21b34cc01020db997f53c8f3 100644 --- a/arch/arm/mach-omap2/am33xx/board.c +++ b/arch/arm/mach-omap2/am33xx/board.c @@ -266,12 +266,17 @@ int arch_misc_init(void) struct udevice *dev; int ret; + /* + * Trigger probe of the UCLASS_MISC device which is a USB wrapper driver + * ti-musb-wrapper that handles all usb host and gadget devices. + */ ret = uclass_first_device_err(UCLASS_MISC, &dev); if (ret) - return ret; + printf("Failed probing USB %d, continue without USB\n", ret); #if defined(CONFIG_DM_ETH) && defined(CONFIG_USB_ETHER) - usb_ether_init(); + if (!ret) + usb_ether_init(); #endif return 0; -- 2.51.0

