summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Armstrong <narmstrong@baylibre.com>2021-05-05 10:38:57 +0200
committerNeil Armstrong <narmstrong@baylibre.com>2021-05-14 17:41:12 +0200
commit60e531fabfaa6b844fa263279f752e868e6d555c (patch)
tree8f8a9b8eb98195cd549d7b931c54766f65d6fac5
parentd39620e045c3ac018d73426b544baa980b4c5239 (diff)
downloadu-boot-60e531fabfaa6b844fa263279f752e868e6d555c.tar.gz
u-boot-60e531fabfaa6b844fa263279f752e868e6d555c.tar.xz
u-boot-60e531fabfaa6b844fa263279f752e868e6d555c.zip
usb: dwc3-meson-g12a: skip phy on -ENODATA aswell
If the PHY isn't specified in the DT, -ENODATA means it should be skipped, handle it like -ENOENT. With that, devices without USB3 supported can have USB working (Odroid-HC4). Fixes: adb049abf7 ("usb: dwc3: Add Meson G12A USB Glue") Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
-rw-r--r--drivers/usb/dwc3/dwc3-meson-g12a.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/dwc3-meson-g12a.c b/drivers/usb/dwc3/dwc3-meson-g12a.c
index bd8bf227c8..90418ddc1d 100644
--- a/drivers/usb/dwc3/dwc3-meson-g12a.c
+++ b/drivers/usb/dwc3/dwc3-meson-g12a.c
@@ -298,7 +298,7 @@ static int dwc3_meson_g12a_get_phys(struct dwc3_meson_g12a *priv)
for (i = 0 ; i < PHY_COUNT ; ++i) {
ret = generic_phy_get_by_name(priv->dev, phy_names[i],
&priv->phys[i]);
- if (ret == -ENOENT)
+ if (ret == -ENOENT || ret == -ENODATA)
continue;
if (ret)