]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
usb: xhci: remove excessive Bulk short packet debug message
authorNiklas Neronin <niklas.neronin@linux.intel.com>
Thu, 5 Sep 2024 14:32:53 +0000 (17:32 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Sep 2024 14:39:22 +0000 (16:39 +0200)
Completion codes 'COMP_SUCCESS' and 'COMP_SHORT_PACKET' are the most
frequently encountered completion codes. Typically, these codes do not
trigger a default debug message but rather a warning that indicates a
potential issue. This behavior is consistent across all transfer types
with the exception of Bulk transfers. To reduce unnecessary log clutter,
remove the Bulk 'COMP_SHORT_PACKET' debug message.

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-6-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-ring.c

index e1c9838084bfc0d15973d27de550d391be3a7929..d37eeee74960a093ad5c94f63cbaca37061f8b23 100644 (file)
@@ -2521,9 +2521,6 @@ static int process_bulk_intr_td(struct xhci_hcd *xhci, struct xhci_virt_ep *ep,
                td->status = 0;
                break;
        case COMP_SHORT_PACKET:
-               xhci_dbg(xhci, "ep %#x - asked for %d bytes, %d bytes untransferred\n",
-                        td->urb->ep->desc.bEndpointAddress,
-                        requested, remaining);
                td->status = 0;
                break;
        case COMP_STOPPED_SHORT_PACKET: