Normally command ring should not be full. If it's full, something weird happens. Print out the command ring and event ring in this case. Signed-off-by: Andiry Xu <andiry.xu@xxxxxxx> --- drivers/usb/host/xhci-ring.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c index bb42297..91ca32b 100644 --- a/drivers/usb/host/xhci-ring.c +++ b/drivers/usb/host/xhci-ring.c @@ -3537,6 +3537,10 @@ static int queue_command(struct xhci_hcd *xhci, u32 field1, u32 field2, reserved_trbs, GFP_ATOMIC); if (ret < 0) { xhci_err(xhci, "ERR: No room for command on command ring\n"); + xhci_warn(xhci, "Command Ring:\n"); + xhci_debug_ring(xhci, xhci->cmd_ring, 1); + xhci_warn(xhci, "Event Ring:\n"); + xhci_debug_ring(xhci, xhci->event_ring, 1); if (command_must_succeed) xhci_err(xhci, "ERR: Reserved TRB counting for " "unfailable commands failed.\n"); -- 1.7.4.1 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html