summaryrefslogtreecommitdiff
path: root/drivers/usb/core/hub.c
diff options
context:
space:
mode:
authorJun Li <r65092@freescale.com>2009-12-01 21:13:48 +0800
committerJun Li <r65092@freescale.com>2009-12-03 18:18:36 +0800
commit9a3dd2536ccf1bb0aa5610b18a897d687d2ef3ac (patch)
tree413a79ae0dd5e3609c3515ef339d050b46e854c8 /drivers/usb/core/hub.c
parentf0a0d65e63e8fafee8d07aa13d598e30261ad9d0 (diff)
ENGR00117147-1 USB clock gating and PHY low power mode.
If there is no usb devices connectted or all connectted usb devices are in suspend state, usb host can suspend its whole bus, then put the PHY into low power mode and close all usb clocks. (The patch is splitted 2 patches, this is common code part.) Signed-off-by: Li Jun <r65092@freescale.com>
Diffstat (limited to 'drivers/usb/core/hub.c')
-rw-r--r--drivers/usb/core/hub.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index b3f934af7f22..64ad4fe3f1f0 100644
--- a/drivers/usb/core/hub.c
+++ b/drivers/usb/core/hub.c
@@ -1170,13 +1170,10 @@ static int hub_probe(struct usb_interface *intf, const struct usb_device_id *id)
return -E2BIG;
}
- /* With OTG enabled, suspending root hub results in gadget not
- * working because gadget uses the same root hub. We disable
- * this feature when OTG is selected.
+ /* Defaultly disable autosuspend for hub and reley on sys
+ * to enable it.
*/
-#if defined(CONFIG_PM) && defined(CONFIG_USB_EHCI_ARC_OTG)
hdev->autosuspend_disabled = 1;
-#endif
#ifdef CONFIG_USB_OTG_BLACKLIST_HUB
if (hdev->parent) {