aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/xhci-dbg.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/host/xhci-dbg.c')
-rw-r--r--drivers/usb/host/xhci-dbg.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci-dbg.c b/drivers/usb/host/xhci-dbg.c
index 5f3a7c74aa8d..f2e7689e11a3 100644
--- a/drivers/usb/host/xhci-dbg.c
+++ b/drivers/usb/host/xhci-dbg.c
@@ -503,11 +503,14 @@ static void xhci_dbg_ep_ctx(struct xhci_hcd *xhci,
503 if (last_ep < 31) 503 if (last_ep < 31)
504 last_ep_ctx = last_ep + 1; 504 last_ep_ctx = last_ep + 1;
505 for (i = 0; i < last_ep_ctx; ++i) { 505 for (i = 0; i < last_ep_ctx; ++i) {
506 unsigned int epaddr = xhci_get_endpoint_address(i);
506 struct xhci_ep_ctx *ep_ctx = xhci_get_ep_ctx(xhci, ctx, i); 507 struct xhci_ep_ctx *ep_ctx = xhci_get_ep_ctx(xhci, ctx, i);
507 dma_addr_t dma = ctx->dma + 508 dma_addr_t dma = ctx->dma +
508 ((unsigned long)ep_ctx - (unsigned long)ctx->bytes); 509 ((unsigned long)ep_ctx - (unsigned long)ctx->bytes);
509 510
510 xhci_dbg(xhci, "Endpoint %02d Context:\n", i); 511 xhci_dbg(xhci, "%s Endpoint %02d Context (ep_index %02d):\n",
512 usb_endpoint_out(epaddr) ? "OUT" : "IN",
513 epaddr & USB_ENDPOINT_NUMBER_MASK, i);
511 xhci_dbg(xhci, "@%p (virt) @%08llx (dma) %#08x - ep_info\n", 514 xhci_dbg(xhci, "@%p (virt) @%08llx (dma) %#08x - ep_info\n",
512 &ep_ctx->ep_info, 515 &ep_ctx->ep_info,
513 (unsigned long long)dma, ep_ctx->ep_info); 516 (unsigned long long)dma, ep_ctx->ep_info);