]> err.no Git - linux-2.6/commit
USB: skip autosuspended devices during system resume
authorAlan Stern <stern@rowland.harvard.edu>
Wed, 10 Oct 2007 20:30:12 +0000 (16:30 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 12 Oct 2007 21:55:34 +0000 (14:55 -0700)
commit271f9e68f3450ac8d1ff3bda36581f1ec0d0cc1f
tree245f6895f988086686fe338b0097fe9b99f1c9f9
parent32fe01985aa2cb2562f6fc171e526e279abe10db
USB: skip autosuspended devices during system resume

System suspends and hibernation are supposed to be as transparent as
possible.  By this reasoning, if a USB device is already autosuspended
before the system sleep begins then it should remain autosuspended
after the system wakes up.

This patch (as1001) adds a skip_sys_resume flag to the usb_device
structure and uses it to avoid waking up devices which were suspended
when a system sleep began.

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