diff options
-rw-r--r-- | drivers/usb/core/quirks.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/usb/core/quirks.c b/drivers/usb/core/quirks.c index 7f17d0fd76c0..ebf3dc20110a 100644 --- a/drivers/usb/core/quirks.c +++ b/drivers/usb/core/quirks.c | |||
@@ -152,4 +152,10 @@ void usb_detect_quirks(struct usb_device *udev) | |||
152 | /* do any special quirk handling here if needed */ | 152 | /* do any special quirk handling here if needed */ |
153 | if (udev->quirks & USB_QUIRK_NO_AUTOSUSPEND) | 153 | if (udev->quirks & USB_QUIRK_NO_AUTOSUSPEND) |
154 | usb_autosuspend_quirk(udev); | 154 | usb_autosuspend_quirk(udev); |
155 | |||
156 | /* By default, disable autosuspend for all non-hubs */ | ||
157 | #ifdef CONFIG_USB_SUSPEND | ||
158 | if (udev->descriptor.bDeviceClass != USB_CLASS_HUB) | ||
159 | udev->autosuspend_delay = -1; | ||
160 | #endif | ||
155 | } | 161 | } |