]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
USB: remove USB_QUIRK_NO_AUTOSUSPEND
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 12 Oct 2007 22:18:49 +0000 (15:18 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 16 Nov 2007 17:30:22 +0000 (09:30 -0800)
commit9b525df252728a6900fb03f6bec436aba35e03bf
tree26e8690c3a40072c0e987a1d29cd78e19a2dd0a9
parentb4fe19f099c5541621f449034f10b6a9e3f7bbdb
USB: remove USB_QUIRK_NO_AUTOSUSPEND

patch a691efa9888e71232dfb4088fb8a8304ffc7b0f9 in mainline.

This patch (as995) cleans up the remains of the former NO_AUTOSUSPEND
quirk.  Since autosuspend is disabled by default, we will let
userspace worry about which devices can safely be suspended.  Thus the
lengthy series of quirk entries is no longer needed, and neither is
the quirk ID.  I suppose someone might eventually run across a hub
that can't be suspended; let's ignore the possibility for now.

The patch also cleans up the hasty way in which autosuspend gets
disabled.  Setting udev->autosuspend_delay to -1 wasn't quite right,
because the value is always supposed to be a multiple of HZ.  It's
better to leave the delay value alone and set autosuspend_disabled,
which is what the quirk routine used to do.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/quirks.c
include/linux/usb/quirks.h