diff options
author | Andiry Xu <andiry.xu@amd.com> | 2010-10-14 10:23:03 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-22 13:22:13 -0400 |
commit | 9777e3ce907d4cb5a513902a87ecd03b52499569 (patch) | |
tree | a2b28eeeaddd39d7c8cdd59f6ddbfa694d40d5ba /drivers/usb/host/xhci-pci.c | |
parent | 561925318725a41189a69f36ebe99199b3fb84c4 (diff) |
USB: xHCI: bus power management implementation
This patch implements xHCI bus suspend/resume function hook.
In the patch it goes through all the ports and suspend/resume
the ports if needed.
If any port is in remote wakeup, abort bus suspend as what ehci/ohci do.
Signed-off-by: Libin Yang <libin.yang@amd.com>
Signed-off-by: Crane Cai <crane.cai@amd.com>
Signed-off-by: Andiry Xu <andiry.xu@amd.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/xhci-pci.c')
-rw-r--r-- | drivers/usb/host/xhci-pci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c index aefc3496376a..3865f8c6f647 100644 --- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host/xhci-pci.c | |||
@@ -162,6 +162,8 @@ static const struct hc_driver xhci_pci_hc_driver = { | |||
162 | /* Root hub support */ | 162 | /* Root hub support */ |
163 | .hub_control = xhci_hub_control, | 163 | .hub_control = xhci_hub_control, |
164 | .hub_status_data = xhci_hub_status_data, | 164 | .hub_status_data = xhci_hub_status_data, |
165 | .bus_suspend = xhci_bus_suspend, | ||
166 | .bus_resume = xhci_bus_resume, | ||
165 | }; | 167 | }; |
166 | 168 | ||
167 | /*-------------------------------------------------------------------------*/ | 169 | /*-------------------------------------------------------------------------*/ |