Commit:     7d2c592609a7da950b458403f1936d382f38ff9c
Parent:     c87ce65868bbf9bbea9c3f112ff8315302daf8f2
Author:     Alan Stern <[EMAIL PROTECTED]>
AuthorDate: Mon Aug 20 10:48:05 2007 -0400
Committer:  Greg Kroah-Hartman <[EMAIL PROTECTED]>
CommitDate: Thu Sep 13 05:49:04 2007 -0700

    USB: disable autosuspend by default for non-hubs
    This patch (as965) disables autosuspend by default for all USB devices
    other than hubs.  We are seeing too many devices that can't suspend or
    resume properly, the blacklist is growing unreasonably quickly, and
    this sort of thing should be handled in userspace.
    Signed-off-by: Alan Stern <[EMAIL PROTECTED]>
    Cc: stable <[EMAIL PROTECTED]>
    Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
 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 7f17d0f..ebf3dc2 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)
        /* do any special quirk handling here if needed */
        if (udev->quirks & USB_QUIRK_NO_AUTOSUSPEND)
+       /* By default, disable autosuspend for all non-hubs */
+       if (udev->descriptor.bDeviceClass != USB_CLASS_HUB)
+               udev->autosuspend_delay = -1;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to