diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2020-02-27 10:02:39 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-03-20 10:07:16 +0100 |
commit | 19bb0b2a8cd76e7fa51ad8020bd504945dbaa505 (patch) | |
tree | 3802e68be02a647e15f8f4f34e654c386ea10fc3 | |
parent | 4f6199ac5322427777c54752bb9a073ebee9fd49 (diff) | |
download | barebox-19bb0b2a8cd76e7fa51ad8020bd504945dbaa505.tar.gz barebox-19bb0b2a8cd76e7fa51ad8020bd504945dbaa505.tar.xz |
usb: hub: Do not power-cycle usb devices on init
This is an adoption of U-Boot commit 0834bb2fb0 ("usb: Do not power-cycle
usb devices on init")
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | drivers/usb/core/hub.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 59354895df..6d664e80bb 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c @@ -87,17 +87,6 @@ static void usb_hub_power_on(struct usb_hub_device *hub) dev = hub->pusb_dev; - /* - * Enable power to the ports: - * Here we Power-cycle the ports: aka, - * turning them off and turning on again. - */ - for (i = 0; i < dev->maxchild; i++) { - usb_clear_port_feature(dev, i + 1, USB_PORT_FEAT_POWER); - dev_dbg(&dev->dev, "port%d: usb_clear_port_feature returns 0x%08lx\n", - i + 1, dev->status); - } - /* Enable power to the ports */ dev_dbg(&dev->dev, "enabling power on all ports\n"); |