mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
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>
This commit is contained in:
parent
d39620e045
commit
60e531fabf
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue