USB: use the runtime-PM autosuspend implementation
authorAlan Stern <stern@rowland.harvard.edu>
Mon, 15 Nov 2010 20:57:51 +0000 (15:57 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Nov 2010 22:03:41 +0000 (14:03 -0800)
commitfcc4a01eb8661226e80632327673f67bf6a5840b
treedc05c200ccfac2daad6d1efe413ae6fa92f1638d
parent6ddf27cdbc218a412d7e993fdc08e30eec2042ce
USB: use the runtime-PM autosuspend implementation

This patch (as1428) converts USB over to the new runtime-PM core
autosuspend framework.  One slightly awkward aspect of the conversion
is that USB devices will now have two suspend-delay attributes: the
old power/autosuspend file and the new power/autosuspend_delay_ms
file.  One expresses the delay time in seconds and the other in
milliseconds, but otherwise they do the same thing.  The old attribute
can be deprecated and then removed eventually.

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