]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xhci: fix isoc endpoint dequeue from advancing too far on transaction error
authorMathias Nyman <mathias.nyman@linux.intel.com>
Thu, 30 Apr 2015 14:16:02 +0000 (17:16 +0300)
committerJiri Slaby <jslaby@suse.cz>
Wed, 3 Jun 2015 09:33:09 +0000 (11:33 +0200)
commiteb536420a4bf1dd6334867cf9c1343d105e070a8
tree1037aac3a5d221f0dc588262ab9d30735996db28
parentc9b036ca04b6b269d23fecb100b258b7bc6d4fd2
xhci: fix isoc endpoint dequeue from advancing too far on transaction error

commit d104d0152a97fade389f47635b73a9ccc7295d0b upstream.

Isoc TDs usually consist of one TRB, sometimes two. When all goes well we
receive only one success event for a TD, and move the dequeue pointer to
the next TD.

This fails if the TD consists of two TRBs and we get a transfer error
on the first TRB, we will then see two events for that TD.

Fix this by making sure the event we get is for the last TRB in that TD
before moving the dequeue pointer to the next TD. This will resolve some
of the uvc and dvb issues with the
"ERROR Transfer event TRB DMA ptr not part of current TD" error message

Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/usb/host/xhci-ring.c