aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/usb
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2010-06-25 14:02:14 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-08-10 17:35:37 -0400
commit4147200d25c423e627ab4487530b3d9f2ef829c8 (patch)
tree7261fbfd97782482d18333f1b0e9de0e2e4bf968 /include/linux/usb
parent057c58bfb1dc9bbb75b8ba3b6c6336cfca63b9d0 (diff)
USB: add do_wakeup parameter for PCI HCD suspend
This patch (as1385) adds a "do_wakeup" parameter to the pci_suspend method used by PCI-based host controller drivers. ehci-hcd in particular needs to know whether or not to enable wakeup when suspending a controller. Although that information is currently available through device_may_wakeup(), when support is added for runtime suspend this will no longer be true. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/usb')
-rw-r--r--include/linux/usb/hcd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/usb/hcd.h b/include/linux/usb/hcd.h
index f8f8fa7a56e8..ae10020b4023 100644
--- a/include/linux/usb/hcd.h
+++ b/include/linux/usb/hcd.h
@@ -211,7 +211,7 @@ struct hc_driver {
211 * a whole, not just the root hub; they're for PCI bus glue. 211 * a whole, not just the root hub; they're for PCI bus glue.
212 */ 212 */
213 /* called after suspending the hub, before entering D3 etc */ 213 /* called after suspending the hub, before entering D3 etc */
214 int (*pci_suspend)(struct usb_hcd *hcd); 214 int (*pci_suspend)(struct usb_hcd *hcd, bool do_wakeup);
215 215
216 /* called after entering D0 (etc), before resuming the hub */ 216 /* called after entering D0 (etc), before resuming the hub */
217 int (*pci_resume)(struct usb_hcd *hcd, bool hibernated); 217 int (*pci_resume)(struct usb_hcd *hcd, bool hibernated);