diff options
author | Mathias Nyman <mathias.nyman@linux.intel.com> | 2013-05-23 10:14:28 -0400 |
---|---|---|
committer | Sarah Sharp <sarah.a.sharp@linux.intel.com> | 2013-06-05 19:46:19 -0400 |
commit | b630d4b9d05ba2e66878ca4614946d0f950d4111 (patch) | |
tree | bd4e9e106016f4dd3d0bd7400d6d21b2d49a38ef /drivers/usb/host/xhci.h | |
parent | 851ec164b14aa9dacafd6edb099e76a4cc9d06ec (diff) |
usb: xhci: check usb2 port capabilities before adding hw link PM support
Hardware link powermanagement in usb2 is a per-port capability.
Previously support for hw lpm was enabled for all ports if any usb2 port supported it.
Now instead cache the capability values and check them for each port individually
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Diffstat (limited to 'drivers/usb/host/xhci.h')
-rw-r--r-- | drivers/usb/host/xhci.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h index d62ebca1e91c..66b048a64ee0 100644 --- a/drivers/usb/host/xhci.h +++ b/drivers/usb/host/xhci.h | |||
@@ -1532,6 +1532,9 @@ struct xhci_hcd { | |||
1532 | unsigned sw_lpm_support:1; | 1532 | unsigned sw_lpm_support:1; |
1533 | /* support xHCI 1.0 spec USB2 hardware LPM */ | 1533 | /* support xHCI 1.0 spec USB2 hardware LPM */ |
1534 | unsigned hw_lpm_support:1; | 1534 | unsigned hw_lpm_support:1; |
1535 | /* cached usb2 extened protocol capabilites */ | ||
1536 | u32 *ext_caps; | ||
1537 | unsigned int num_ext_caps; | ||
1535 | /* Compliance Mode Recovery Data */ | 1538 | /* Compliance Mode Recovery Data */ |
1536 | struct timer_list comp_mode_recovery_timer; | 1539 | struct timer_list comp_mode_recovery_timer; |
1537 | u32 port_status_u0; | 1540 | u32 port_status_u0; |