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, 3 insertions, 2 deletions
diff --git a/drivers/usb/host/xhci-dbg.c b/drivers/usb/host/xhci-dbg.c
index 705e34324156..33128d52f212 100644
--- a/drivers/usb/host/xhci-dbg.c
+++ b/drivers/usb/host/xhci-dbg.c
@@ -413,7 +413,8 @@ void xhci_dbg_slot_ctx(struct xhci_hcd *xhci, struct xhci_container_ctx *ctx)
413 int i; 413 int i;
414 414
415 struct xhci_slot_ctx *slot_ctx = xhci_get_slot_ctx(xhci, ctx); 415 struct xhci_slot_ctx *slot_ctx = xhci_get_slot_ctx(xhci, ctx);
416 dma_addr_t dma = ctx->dma + ((unsigned long)slot_ctx - (unsigned long)ctx); 416 dma_addr_t dma = ctx->dma +
417 ((unsigned long)slot_ctx - (unsigned long)ctx->bytes);
417 int csz = HCC_64BYTE_CONTEXT(xhci->hcc_params); 418 int csz = HCC_64BYTE_CONTEXT(xhci->hcc_params);
418 419
419 xhci_dbg(xhci, "Slot Context:\n"); 420 xhci_dbg(xhci, "Slot Context:\n");
@@ -459,7 +460,7 @@ void xhci_dbg_ep_ctx(struct xhci_hcd *xhci,
459 for (i = 0; i < last_ep_ctx; ++i) { 460 for (i = 0; i < last_ep_ctx; ++i) {
460 struct xhci_ep_ctx *ep_ctx = xhci_get_ep_ctx(xhci, ctx, i); 461 struct xhci_ep_ctx *ep_ctx = xhci_get_ep_ctx(xhci, ctx, i);
461 dma_addr_t dma = ctx->dma + 462 dma_addr_t dma = ctx->dma +
462 ((unsigned long)ep_ctx - (unsigned long)ctx); 463 ((unsigned long)ep_ctx - (unsigned long)ctx->bytes);
463 464
464 xhci_dbg(xhci, "Endpoint %02d Context:\n", i); 465 xhci_dbg(xhci, "Endpoint %02d Context:\n", i);
465 xhci_dbg(xhci, "@%p (virt) @%08llx (dma) %#08x - ep_info\n", 466 xhci_dbg(xhci, "@%p (virt) @%08llx (dma) %#08x - ep_info\n",