aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/usb.h
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2007-10-10 16:30:12 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2007-10-12 14:55:34 -0700
commit271f9e68f3450ac8d1ff3bda36581f1ec0d0cc1f (patch)
tree245f6895f988086686fe338b0097fe9b99f1c9f9 /include/linux/usb.h
parentUSB: mutual exclusion for EHCI init and port resets (diff)
downloadlinux-dev-271f9e68f3450ac8d1ff3bda36581f1ec0d0cc1f.tar.xz
linux-dev-271f9e68f3450ac8d1ff3bda36581f1ec0d0cc1f.zip
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>
Diffstat (limited to 'include/linux/usb.h')
-rw-r--r--include/linux/usb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h
index c10935fdc03a..c5c8f169d3cf 100644
--- a/include/linux/usb.h
+++ b/include/linux/usb.h
@@ -430,6 +430,7 @@ struct usb_device {
unsigned persist_enabled:1; /* USB_PERSIST enabled for this dev */
unsigned autosuspend_disabled:1; /* autosuspend and autoresume */
unsigned autoresume_disabled:1; /* disabled by the user */
+ unsigned skip_sys_resume:1; /* skip the next system resume */
#endif
};
#define to_usb_device(d) container_of(d, struct usb_device, dev)