]> git.baikalelectronics.ru Git - kernel.git/commit
xhci: don't finish a TD if we get a short transfer event mid TD
authorMathias Nyman <mathias.nyman@linux.intel.com>
Mon, 12 Oct 2015 08:30:11 +0000 (11:30 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Oct 2015 07:04:18 +0000 (00:04 -0700)
commit0ad475055c2fce1cbc4dc07ce9fbfb59ecfb64ad
treec6a1726b446b212c4c4b3f7ffdd3858364f086fe
parent186f6599ed5cde61c9827a5391f6e95cc77b81bf
xhci: don't finish a TD if we get a short transfer event mid TD

If the difference is big enough between the bytes asked and received
in a bulk transfer we can get a short transfer event pointing to a TRB in
the middle of the TD. We don't want to handle the TD yet as we will anyway
receive a new event for the last TRB in the TD.

Hold off from finishing the TD and removing it from the list until we
receive an event for the last TRB in the TD

Cc: stable <stable@vger.kernel.org>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-ring.c