summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorNiklas Neronin <niklas.neronin@linux.intel.com>2024-06-26 14:48:26 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-06-27 16:08:05 +0200
commit43061949ec1ba12d048d004d173688fe9c8cf3c3 (patch)
tree61080e0e45db21ca313925f626bfb3591f3ee94b /drivers/usb
parentusb: xhci: move untargeted transfer event handling to a separate function (diff)
downloadlinux-43061949ec1ba12d048d004d173688fe9c8cf3c3.tar.xz
linux-43061949ec1ba12d048d004d173688fe9c8cf3c3.zip
usb: xhci: improve error message for targetless transfer event
Improve error message for unknown transfer event without a TRB, by also printing the event code number. This removes the inevitable question; "what was the unknown event code exactly?" 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/20240626124835.1023046-13-mathias.nyman@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/host/xhci-ring.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c
index 7f40be2a3885..d4e4c1c71f90 100644
--- a/drivers/usb/host/xhci-ring.c
+++ b/drivers/usb/host/xhci-ring.c
@@ -2582,8 +2582,8 @@ static int handle_transferless_tx_event(struct xhci_hcd *xhci, struct xhci_virt_
case COMP_STOPPED_LENGTH_INVALID:
break;
default:
- xhci_err(xhci, "ERROR Transfer event for unknown stream ring slot %u ep %u\n",
- ep->vdev->slot_id, ep->ep_index);
+ xhci_err(xhci, "Transfer event %u for unknown stream ring slot %u ep %u\n",
+ trb_comp_code, ep->vdev->slot_id, ep->ep_index);
return -ENODEV;
}
return 0;