summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/xhci.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2013-10-04 00:29:49 +0200
committerSarah Sharp <sarah.a.sharp@linux.intel.com>2014-03-04 15:38:02 -0800
commit9aad95e292f58d00aa0f2e30c7f7dafd7fc7491c (patch)
treeb0dda7e01959c435e0e4f08bb812e4f69bde3657 /drivers/usb/host/xhci.h
parent95241dbdf8281ece1355b8673b882d6a182f3c7d (diff)
downloadlinux-9aad95e292f58d00aa0f2e30c7f7dafd7fc7491c.tar.bz2
xhci: For streams the dequeue ptr must be read from the stream ctx
This fixes TR dequeue validation failing on Intel XHCI controllers with the following warning: Mismatch between completed Set TR Deq Ptr command & xHCI internal state. Interestingly enough reading the deq ptr from the ep ctx after a TR Deq Ptr command does work on a Nec XHCI controller, it seems the Nec writes the ptr to both the ep and stream contexts when streams are used. 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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h
index 2c77bf7ab9e5..d280e9213d08 100644
--- a/drivers/usb/host/xhci.h
+++ b/drivers/usb/host/xhci.h
@@ -703,6 +703,7 @@ struct xhci_ep_ctx {
/* deq bitmasks */
#define EP_CTX_CYCLE_MASK (1 << 0)
+#define SCTX_DEQ_MASK (~0xfL)
/**