Skip to content

Commit 4306194

Browse files
Epicuriusgregkh
authored andcommitted
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 <[email protected]> Signed-off-by: Mathias Nyman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 2acd0c2 commit 4306194

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/usb/host/xhci-ring.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2582,8 +2582,8 @@ static int handle_transferless_tx_event(struct xhci_hcd *xhci, struct xhci_virt_
25822582
case COMP_STOPPED_LENGTH_INVALID:
25832583
break;
25842584
default:
2585-
xhci_err(xhci, "ERROR Transfer event for unknown stream ring slot %u ep %u\n",
2586-
ep->vdev->slot_id, ep->ep_index);
2585+
xhci_err(xhci, "Transfer event %u for unknown stream ring slot %u ep %u\n",
2586+
trb_comp_code, ep->vdev->slot_id, ep->ep_index);
25872587
return -ENODEV;
25882588
}
25892589
return 0;

0 commit comments

Comments
 (0)