[PATCH] USB: dwc2: allow usb start even if usbphy is not found
Marius Dinu
m95d+git at psihoexpert.ro
Mon Mar 16 10:26:39 CET 2026
RK3288 uses rockchip_usb2_phy, but that driver doesn't register iself
as a usbphy driver and "usb start" fails with this error:
drivers/usb/host/dwc2.c:1254- dwc2_setup_phy() dwc2_usb usb at ff580000:
Failed to get USB PHY: -19.
Until a proper fix is made for rockchip_usb2_phy, this patch allows
usb start to continue even if usbphy is not found.
Tested on Asus TinkerBoard.
Signed-off-by: Marius Dinu <m95d+git at psihoexpert.ro>
---
drivers/usb/host/dwc2.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/usb/host/dwc2.c b/drivers/usb/host/dwc2.c
index 16f21fa9083..74d71f23d88 100644
--- a/drivers/usb/host/dwc2.c
+++ b/drivers/usb/host/dwc2.c
@@ -1329,7 +1329,7 @@ static int dwc2_usb_probe(struct udevice *dev)
ret = dwc2_setup_phy(dev);
if (ret)
- return ret;
+ dev_dbg(dev, "Failed to setup PHY: %d. Continuing anyway...\n", ret);
return dwc2_init_common(dev, priv);
}
@@ -1345,8 +1345,7 @@ static int dwc2_usb_remove(struct udevice *dev)
ret = dwc2_shutdown_phy(dev);
if (ret) {
- dev_dbg(dev, "Failed to shutdown USB PHY: %d.\n", ret);
- return ret;
+ dev_dbg(dev, "Failed to shutdown USB PHY: %d. Continuing anyway...\n", ret);
}
dwc2_uninit_common(priv->regs);
--
2.52.0
More information about the U-Boot
mailing list