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)
commit7560d32ec70508a71f537a88e40f7717f15389ac
tree26ad39a57917f74ede0aafe7dd6d7e48fb707694
parentff9c895f07d36193c75533bda8193bde8ca99d02
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