]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
am33xx: Avoid hard failure on USB probe issue
authorMarkus Schneider-Pargmann (TI) <msp@baylibre.com>
Mon, 1 Jun 2026 09:30:41 +0000 (11:30 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 12 Jun 2026 19:01:24 +0000 (13:01 -0600)
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 <kory.maincent@bootlin.com>
Signed-off-by: Markus Schneider-Pargmann (TI) <msp@baylibre.com>
arch/arm/mach-omap2/am33xx/board.c

index 0261606089ea672baf7e05046de73ef9bf518f64..3bf9770934ccda52b51dc25bb96e73db1159e3ff 100644 (file)
@@ -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;