public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH] USB: dwc2: allow usb start even if usbphy is not found
@ 2026-03-16  9:26 Marius Dinu
  2026-03-16 10:04 ` Jonas Karlman
  0 siblings, 1 reply; 7+ messages in thread
From: Marius Dinu @ 2026-03-16  9:26 UTC (permalink / raw)
  To: u-boot; +Cc: Marius Dinu

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@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@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



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-03-17  9:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-16  9:26 [PATCH] USB: dwc2: allow usb start even if usbphy is not found Marius Dinu
2026-03-16 10:04 ` Jonas Karlman
2026-03-16 14:27   ` Marius Dinu
2026-03-16 15:12   ` Marius Dinu
2026-03-16 21:41     ` Jonas Karlman
2026-03-17  7:37       ` Marius Dinu
2026-03-17  9:20       ` Marius Dinu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox