]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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 22:02:36 +0000 (15:02 -0700)
commit2b454d9a5f0507c1bc3f01c06a2e6c464d2a2641
tree1a93e01bd32733a536cb85b46b7c12b3f668c4d4
parentdf21fe75bef3db5bc2276eef92792718398f5889
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