]> git.ipfire.org Git - people/arne_f/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>
Sun, 10 Dec 2017 12:40:44 +0000 (13:40 +0100)
commit33288619482a876f2575ed308ac2c1c3199a6a1a
tree0ccde6dbf52a95790017f272027996e2537ed21a
parent8bc546bbfec9be32108af2684a2766629acc052d
xhci: Don't show incorrect WARN message about events for empty rings

commit e4ec40ec4b260efcca15089de4285a0a3411259b upstream.

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.

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