]> git.baikalelectronics.ru Git - kernel.git/commit
USB: improve runtime remote wakeup settings
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 2 Apr 2010 17:18:50 +0000 (13:18 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 20 May 2010 20:21:37 +0000 (13:21 -0700)
commit6ab26d028c1c81a77290d0e1ff32081a97e54154
tree26ad39a57917f74ede0aafe7dd6d7e48fb707694
parentba8b776f32fd5482bd2bb66508aa4e7c6d642c3b
USB: improve runtime remote wakeup settings

This patch (as1362) adjusts the way the USB autosuspend routines
handle remote-wakeup settings.  They aren't supposed to use
device_may_wakeup(); that test is intended only for system sleep, not
runtime power management.  Instead the code checks to see if any
interface drivers need remote wakeup; if they do then it is enabled,
provided the device is capable of it.

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