diff options
author | Tom Rini <trini@konsulko.com> | 2025-10-05 09:50:57 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-10-05 09:50:57 -0600 |
commit | 4e4a9de31de2a5f395ee25c59e4026422fbcb27e (patch) | |
tree | 2889d0bac208738d861ce0a795f3245f1ff055eb | |
parent | eede1fccec4d0adf1934d9a6f51ae6d3675351e7 (diff) | |
parent | f4dd112a3822c86175d091362f5cce1029f0523b (diff) |
Merge branch 'next' of git://source.denx.de/u-boot-usb into next
- Make the i2c-bus property for an onboard USB hub optional
-rw-r--r-- | common/usb_onboard_hub.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/common/usb_onboard_hub.c b/common/usb_onboard_hub.c index 805b2ccbc00..6fc34489a98 100644 --- a/common/usb_onboard_hub.c +++ b/common/usb_onboard_hub.c @@ -61,8 +61,13 @@ static int usb5744_i2c_init(struct udevice *dev) int ret, slave_addr; ret = dev_read_phandle_with_args(dev, "i2c-bus", NULL, 0, 0, &phandle); + if (ret == -ENOENT) { + dev_dbg(dev, "i2c-bus not specified\n"); + return 0; + } + if (ret) { - dev_err(dev, "i2c-bus not specified\n"); + dev_err(dev, "i2c-bus read failed\n"); return ret; } |