summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/xhci.h
diff options
context:
space:
mode:
authorSarah Sharp <sarah.a.sharp@linux.intel.com>2011-11-10 16:02:13 -0800
committerSarah Sharp <sarah.a.sharp@linux.intel.com>2012-05-18 15:41:52 -0700
commit797b0ca5e6283b4cc0bdeeb0e5915f21522ba85f (patch)
treed0403d305832896a4b13a96ee43090c41d7ddc81 /drivers/usb/host/xhci.h
parent33b2831ac870d50cc8e01c317b07fb1e69c13fe1 (diff)
downloadblackbird-op-linux-797b0ca5e6283b4cc0bdeeb0e5915f21522ba85f.tar.gz
blackbird-op-linux-797b0ca5e6283b4cc0bdeeb0e5915f21522ba85f.zip
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.h2
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 {
* Timeout can be up to 127us. 0xFF means an infinite timeout.
*/
#define PORT_U1_TIMEOUT(p) ((p) & 0xff)
+#define PORT_U1_TIMEOUT_MASK 0xff
/* Inactivity timer value for transitions into U2 */
#define PORT_U2_TIMEOUT(p) (((p) & 0xff) << 8)
+#define PORT_U2_TIMEOUT_MASK (0xff << 8)
/* Bits 24:31 for port testing */
/* USB2 Protocol PORTSPMSC */
OpenPOWER on IntegriCloud