From 19bb0b2a8cd76e7fa51ad8020bd504945dbaa505 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Thu, 27 Feb 2020 10:02:39 +0100 Subject: 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 --- drivers/usb/core/hub.c | 11 ----------- 1 file changed, 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"); -- cgit v1.2.3