]> www.infradead.org Git - users/dwmw2/linux.git/commit
usb: xhci: adjust empty TD list handling in handle_tx_event()
authorNiklas Neronin <niklas.neronin@linux.intel.com>
Thu, 5 Sep 2024 14:32:58 +0000 (17:32 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Sep 2024 14:39:22 +0000 (16:39 +0200)
commitda6a6dcfce61f765d5a77688f4a813deb410762e
tree645b1cf3b0dfef4d5ef3faeeb8d7c81a195c2c32
parentdbb2c9229da2393086da235d4ced560dabe463ea
usb: xhci: adjust empty TD list handling in handle_tx_event()

Introduce an initial check for an empty list prior to entering the while
loop. Which enables, the implementation of distinct warnings to
differentiate between scenarios where the list is initially empty and
when it has been emptied during processing skipped isoc TDs.

These adjustments not only simplifies the large while loop, but also
facilitates future enhancements to the handle_tx_event() function.

Signed-off-by: Niklas Neronin <niklas.neronin@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20240905143300.1959279-11-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-ring.c