]> git.baikalelectronics.ru Git - kernel.git/commit
xhci: Don't show incorrect WARN message about events for empty rings
authorMathias Nyman <mathias.nyman@linux.intel.com>
Fri, 1 Dec 2017 11:41:19 +0000 (13:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Dec 2017 15:24:58 +0000 (15:24 +0000)
commit8b435ee93dcd9def9e4071551d6f018f578267d6
treec93e999b4e017747cfd924e3adeac0c29489442c
parent6cb4a2c515f1b55b49d948a8f3151a38d0355e12
xhci: Don't show incorrect WARN message about events for empty rings

xHC can generate two events for a short transfer if the short TRB and
last TRB in the TD are not the same TRB.

The driver will handle the TD after the first short event, and remove
it from its internal list. Driver then incorrectly prints a warning
for the second event:

"WARN Event TRB for slot x ep y with no TDs queued"

Fix this by not printing a warning if we get a event on a empty list
if the previous event was a short event.

Cc: <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