summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Schneider-Pargmann (TI) <[email protected]>2026-06-01 11:30:41 +0200
committerTom Rini <[email protected]>2026-06-12 13:01:24 -0600
commit44d86f9194acbd1c649278d7e63b79280f26e1de (patch)
tree8bc478a0a87fb688eb23c27b22ec159e15fefcb5
parentcc1c6632b6444105f52147a2d1d0d9f92f6fa993 (diff)
am33xx: Avoid hard failure on USB probe issue
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. Reviewed-by: Kory Maincent <[email protected]> Signed-off-by: Markus Schneider-Pargmann (TI) <[email protected]>
-rw-r--r--arch/arm/mach-omap2/am33xx/board.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/am33xx/board.c b/arch/arm/mach-omap2/am33xx/board.c
index 0261606089e..3bf9770934c 100644
--- a/arch/arm/mach-omap2/am33xx/board.c
+++ b/arch/arm/mach-omap2/am33xx/board.c
@@ -267,17 +267,18 @@ int arch_misc_init(void)
int ret;
/*
- * The MUSB wrapper driver is bound as a MISC device, so probe here
- * to register the musb device early.
+ * Trigger probe of the UCLASS_MISC device which is a USB wrapper driver
+ * ti-musb-wrapper that handles all usb host and gadget devices.
*/
if (IS_ENABLED(CONFIG_USB_MUSB_TI)) {
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;