]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
Xilinx: Disable Auto Suspend for USB hub driver
authorNaveen Mamindlapalli <naveenm@xhd-epdswlin32re1.(none)>
Tue, 12 Apr 2011 15:07:50 +0000 (20:37 +0530)
committerJohn Linn <john.linn@xilinx.com>
Tue, 12 Apr 2011 19:11:56 +0000 (13:11 -0600)
Commented Auto suspend for USB hub devices since the USB OTG
support depends on CONFIG_PM_RUNTIME which suspends hub until
enabled using sysfs.

Signed-off-by: Naveen Mamindlapalli <naveenm@xilinx.com>
drivers/usb/core/hub.c

index 0f299b7aad609bc232e7d10c0c142f47f180534b..a690a345b1c88242bf82694288aabeabd4c5ef34 100644 (file)
@@ -1254,7 +1254,11 @@ static int hub_probe(struct usb_interface *intf, const struct usb_device_id *id)
        hdev = interface_to_usbdev(intf);
 
        /* Hubs have proper suspend/resume support */
+#ifdef CONFIG_USB_XUSBPS_OTG
+       usb_disable_autosuspend(hdev);
+#else
        usb_enable_autosuspend(hdev);
+#endif
 
        if (hdev->level == MAX_TOPO_LEVEL) {
                dev_err(&intf->dev,