Compare commits

...

3 Commits

Author SHA1 Message Date
Tom Rini
fe181b6627 Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-usb
- USB onboard-hub fix

(cherry picked from commit 88bd5701ef)
2025-12-17 16:36:43 -07:00
Venkatesh Yadav Abbarapu
90eeb8ab55 usb: onboard-hub: Update the bind function based on peer-hub property
As the "peer-hub" property is optional, don't error out just
skip the bind function.

Fixes: 57e30b09fc ("usb: onboard-hub: Bail out if peer hub is already probed")
Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Acked-by: Michal Simek <michal.simek@amd.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Tested-by: Patrice Chotard <patrice.chotard@foss.st.com>
(cherry picked from commit 0e24474cc3)
2025-12-17 16:36:32 -07:00
Simon Glass
9a89e6a74d Merge branch 'cherry-8b81010a2fe' into 'master'
[pickman] Merge tag 'xilinx-for-v2025.01-rc5' of https://source.denx.de/u-boot/custodians/u-boot-microblaze

See merge request u-boot/u-boot!248
2025-12-17 23:33:54 +00:00

View File

@@ -183,7 +183,12 @@ static int usb_onboard_hub_bind(struct udevice *dev)
int ret, off;
ret = dev_read_phandle_with_args(dev, "peer-hub", NULL, 0, 0, &phandle);
if (ret) {
if (ret == -ENOENT) {
dev_dbg(dev, "peer-hub property not present\n");
return 0;
}
if (ret) {
dev_err(dev, "peer-hub not specified\n");
return ret;
}