diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2010-06-25 14:02:14 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-10 17:35:37 -0400 |
commit | 4147200d25c423e627ab4487530b3d9f2ef829c8 (patch) | |
tree | 7261fbfd97782482d18333f1b0e9de0e2e4bf968 /drivers/usb/host/ehci.h | |
parent | 057c58bfb1dc9bbb75b8ba3b6c6336cfca63b9d0 (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 'drivers/usb/host/ehci.h')
-rw-r--r-- | drivers/usb/host/ehci.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h index e6c57cc416f6..a4a63ce290e9 100644 --- a/drivers/usb/host/ehci.h +++ b/drivers/usb/host/ehci.h | |||
@@ -540,11 +540,11 @@ struct ehci_fstn { | |||
540 | 540 | ||
541 | /* Prepare the PORTSC wakeup flags during controller suspend/resume */ | 541 | /* Prepare the PORTSC wakeup flags during controller suspend/resume */ |
542 | 542 | ||
543 | #define ehci_prepare_ports_for_controller_suspend(ehci) \ | 543 | #define ehci_prepare_ports_for_controller_suspend(ehci, do_wakeup) \ |
544 | ehci_adjust_port_wakeup_flags(ehci, true); | 544 | ehci_adjust_port_wakeup_flags(ehci, true, do_wakeup); |
545 | 545 | ||
546 | #define ehci_prepare_ports_for_controller_resume(ehci) \ | 546 | #define ehci_prepare_ports_for_controller_resume(ehci) \ |
547 | ehci_adjust_port_wakeup_flags(ehci, false); | 547 | ehci_adjust_port_wakeup_flags(ehci, false, false); |
548 | 548 | ||
549 | /*-------------------------------------------------------------------------*/ | 549 | /*-------------------------------------------------------------------------*/ |
550 | 550 | ||