|
@@ -503,11 +503,14 @@ static void xhci_dbg_ep_ctx(struct xhci_hcd *xhci,
|
|
|
if (last_ep < 31)
|
|
|
last_ep_ctx = last_ep + 1;
|
|
|
for (i = 0; i < last_ep_ctx; ++i) {
|
|
|
+ unsigned int epaddr = xhci_get_endpoint_address(i);
|
|
|
struct xhci_ep_ctx *ep_ctx = xhci_get_ep_ctx(xhci, ctx, i);
|
|
|
dma_addr_t dma = ctx->dma +
|
|
|
((unsigned long)ep_ctx - (unsigned long)ctx->bytes);
|
|
|
|
|
|
- xhci_dbg(xhci, "Endpoint %02d Context:\n", i);
|
|
|
+ xhci_dbg(xhci, "%s Endpoint %02d Context (ep_index %02d):\n",
|
|
|
+ usb_endpoint_out(epaddr) ? "OUT" : "IN",
|
|
|
+ epaddr & USB_ENDPOINT_NUMBER_MASK, i);
|
|
|
xhci_dbg(xhci, "@%p (virt) @%08llx (dma) %#08x - ep_info\n",
|
|
|
&ep_ctx->ep_info,
|
|
|
(unsigned long long)dma, ep_ctx->ep_info);
|