diff options
author | Sarah Sharp <sarah.a.sharp@linux.intel.com> | 2011-11-10 19:02:13 -0500 |
---|---|---|
committer | Sarah Sharp <sarah.a.sharp@linux.intel.com> | 2012-05-18 18:41:52 -0400 |
commit | 797b0ca5e6283b4cc0bdeeb0e5915f21522ba85f (patch) | |
tree | d0403d305832896a4b13a96ee43090c41d7ddc81 /drivers/usb/host/xhci.h | |
parent | 33b2831ac870d50cc8e01c317b07fb1e69c13fe1 (diff) |
xhci: Add roothub code to set U1/U2 timeouts.
USB 3.0 hubs can be put into a mode where the hub can automatically
request that the link go into a deeper link power state after the link
has been idle for a specified amount of time. Each of the new USB 3.0
link states (U1 and U2) have their own timeout that can be programmed
per port.
Change the xHCI roothub emulation code to handle the request to set the
U1 and U2 timeouts.
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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h index ac142760fd3b..58d527ccb24a 100644 --- a/drivers/usb/host/xhci.h +++ b/drivers/usb/host/xhci.h | |||
@@ -362,8 +362,10 @@ struct xhci_op_regs { | |||
362 | * Timeout can be up to 127us. 0xFF means an infinite timeout. | 362 | * Timeout can be up to 127us. 0xFF means an infinite timeout. |
363 | */ | 363 | */ |
364 | #define PORT_U1_TIMEOUT(p) ((p) & 0xff) | 364 | #define PORT_U1_TIMEOUT(p) ((p) & 0xff) |
365 | #define PORT_U1_TIMEOUT_MASK 0xff | ||
365 | /* Inactivity timer value for transitions into U2 */ | 366 | /* Inactivity timer value for transitions into U2 */ |
366 | #define PORT_U2_TIMEOUT(p) (((p) & 0xff) << 8) | 367 | #define PORT_U2_TIMEOUT(p) (((p) & 0xff) << 8) |
368 | #define PORT_U2_TIMEOUT_MASK (0xff << 8) | ||
367 | /* Bits 24:31 for port testing */ | 369 | /* Bits 24:31 for port testing */ |
368 | 370 | ||
369 | /* USB2 Protocol PORTSPMSC */ | 371 | /* USB2 Protocol PORTSPMSC */ |