aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/xhci.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2013-10-03 18:29:48 -0400
committerSarah Sharp <sarah.a.sharp@linux.intel.com>2014-03-04 18:38:01 -0500
commit95241dbdf8281ece1355b8673b882d6a182f3c7d (patch)
treeae654d2b210bfa2cdf3c4af487619b31a760ee46 /drivers/usb/host/xhci.h
parentc4bedb77ec4cb42f37cae4cbfddda8283161f7c8 (diff)
xhci: Set SCT field for Set TR dequeue on streams
Nec XHCI controllers don't seem to care, but without this Intel XHCI controllers reject Set TR dequeue commands with a COMP_TRB_ERR, leading to the following warning: WARN Set TR Deq Ptr cmd invalid because of stream ID configuration And very shortly after this the system completely freezes. Signed-off-by: Hans de Goede <hdegoede@redhat.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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h
index a6aa98f19a1f..2c77bf7ab9e5 100644
--- a/drivers/usb/host/xhci.h
+++ b/drivers/usb/host/xhci.h
@@ -1118,9 +1118,10 @@ enum xhci_setup_dev {
1118#define TRB_TO_SUSPEND_PORT(p) (((p) & (1 << 23)) >> 23) 1118#define TRB_TO_SUSPEND_PORT(p) (((p) & (1 << 23)) >> 23)
1119#define LAST_EP_INDEX 30 1119#define LAST_EP_INDEX 30
1120 1120
1121/* Set TR Dequeue Pointer command TRB fields */ 1121/* Set TR Dequeue Pointer command TRB fields, 6.4.3.9 */
1122#define TRB_TO_STREAM_ID(p) ((((p) & (0xffff << 16)) >> 16)) 1122#define TRB_TO_STREAM_ID(p) ((((p) & (0xffff << 16)) >> 16))
1123#define STREAM_ID_FOR_TRB(p) ((((p)) & 0xffff) << 16) 1123#define STREAM_ID_FOR_TRB(p) ((((p)) & 0xffff) << 16)
1124#define SCT_FOR_TRB(p) (((p) << 1) & 0x7)
1124 1125
1125 1126
1126/* Port Status Change Event TRB fields */ 1127/* Port Status Change Event TRB fields */