diff options
author | Andiry Xu <andiry.xu@amd.com> | 2011-09-23 17:19:52 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-09-26 18:51:10 -0400 |
commit | 65580b4321eb36f16ae8b5987bfa1bb948fc5112 (patch) | |
tree | 12735f923ad670c405efb5ab34c188dc06ad15f7 /drivers/usb/host/xhci-pci.c | |
parent | 9574323c39d1f8359a04843075d89c9f32d8b7e6 (diff) |
xHCI: set USB2 hardware LPM
If the device pass the USB2 software LPM and the host supports hardware
LPM, enable hardware LPM for the device to let the host decide when to
put the link into lower power state.
If hardware LPM is enabled for a port and driver wants to put it into
suspend, it must first disable hardware LPM, resume the port into U0,
and then suspend the port.
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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c index 213a7d73b118..e66e2b03fbbe 100644 --- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host/xhci-pci.c | |||
@@ -349,6 +349,7 @@ static const struct hc_driver xhci_pci_hc_driver = { | |||
349 | * call back when device connected and addressed | 349 | * call back when device connected and addressed |
350 | */ | 350 | */ |
351 | .update_device = xhci_update_device, | 351 | .update_device = xhci_update_device, |
352 | .set_usb2_hw_lpm = xhci_set_usb2_hardware_lpm, | ||
352 | }; | 353 | }; |
353 | 354 | ||
354 | /*-------------------------------------------------------------------------*/ | 355 | /*-------------------------------------------------------------------------*/ |