USB: fix remote wakeup settings during system sleep
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 30 Apr 2010 16:09:23 +0000 (12:09 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 12 May 2010 21:57:01 +0000 (14:57 -0700)
commit2fb9d8cdf50d3d2353da727c8faf4fa1ea0eb2b6
treeb641565d4a62dbf7b210802919878ffc162f5a57
parentd6890e184283ae1b9c2edacae838d15e3ce55155
USB: fix remote wakeup settings during system sleep

This is a backport of commit 5f677f1d45b2bf08085bbba7394392dfa586fa8e.
Some of the functionality had to be removed, but it should still fix
the webcam problem.

This patch (as1363b) changes the way USB remote wakeup is handled
during system sleeps.  It won't be enabled unless an interface driver
specifically needs it.  Also, it won't be enabled during the FREEZE or
QUIESCE phases of hibernation, when the system doesn't respond to
wakeup events anyway.

This will fix problems people have reported with certain USB webcams
that generate wakeup requests when they shouldn't, and as a result
cause system suspends to fail.  See

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/515109

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