summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2024-02-20 08:03:21 -0500
committerTom Rini <[email protected]>2024-02-20 08:03:21 -0500
commit1817afe30f1549d4d2145bd35de0427e9a7bfdfb (patch)
tree538d12902f6a16084a5bd33335ce3f454c54a939 /common
parentbebf916f9eb13aaf5bbf83fbd33204df5c6c9f8e (diff)
parentd9a20fea2ba53db3a999827d3e50e181d5513e09 (diff)
Merge https://gitlab.denx.de/u-boot/custodians/u-boot-usb
Diffstat (limited to 'common')
-rw-r--r--common/usb_hub.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/common/usb_hub.c b/common/usb_hub.c
index 3fb7e14d106..2e054eb9353 100644
--- a/common/usb_hub.c
+++ b/common/usb_hub.c
@@ -174,8 +174,10 @@ static void usb_hub_power_on(struct usb_hub_device *hub)
debug("enabling power on all ports\n");
for (i = 0; i < dev->maxchild; i++) {
- usb_set_port_feature(dev, i + 1, USB_PORT_FEAT_RESET);
- debug("Reset : port %d returns %lX\n", i + 1, dev->status);
+ if (usb_hub_is_superspeed(dev)) {
+ usb_set_port_feature(dev, i + 1, USB_PORT_FEAT_RESET);
+ debug("Reset : port %d returns %lX\n", i + 1, dev->status);
+ }
usb_set_port_feature(dev, i + 1, USB_PORT_FEAT_POWER);
debug("PowerOn : port %d returns %lX\n", i + 1, dev->status);
}