mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
usb: dwc3: Fix non-usb3 configurations
Missing nodes may also be signaled via -ENODATA. We need to check for
that to prevent failing in non-usb3 setups.
Furthermore, dev.phy must be NULL'ed in case usb3-phy was not found.
Fixes: 142d50fbce
("usb: dwc3: Add support for usb3-phy PHY configuration")
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
parent
6a6468f479
commit
868d58f69c
1 changed files with 3 additions and 1 deletions
|
@ -468,9 +468,11 @@ static int dwc3_glue_probe(struct udevice *dev)
|
|||
ret = generic_phy_init(&phy);
|
||||
if (ret)
|
||||
return ret;
|
||||
} else if (ret != -ENOENT) {
|
||||
} else if (ret != -ENOENT && ret != -ENODATA) {
|
||||
debug("could not get phy (err %d)\n", ret);
|
||||
return ret;
|
||||
} else {
|
||||
phy.dev = NULL;
|
||||
}
|
||||
|
||||
glue->regs = dev_read_addr(dev);
|
||||
|
|
Loading…
Reference in a new issue