xhci: For streams the dequeue ptr must be read from the stream ctx
authorHans de Goede <hdegoede@redhat.com>
Thu, 3 Oct 2013 22:29:49 +0000 (00:29 +0200)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Tue, 4 Mar 2014 23:38:02 +0000 (15:38 -0800)
commit9aad95e292f58d00aa0f2e30c7f7dafd7fc7491c
treeb0dda7e01959c435e0e4f08bb812e4f69bde3657
parent95241dbdf8281ece1355b8673b882d6a182f3c7d
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>
drivers/usb/host/xhci-ring.c
drivers/usb/host/xhci.h