diff options
Diffstat (limited to 'drivers/usb/host/xhci-dbg.c')
-rw-r--r-- | drivers/usb/host/xhci-dbg.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-dbg.c b/drivers/usb/host/xhci-dbg.c index 105fa8b025bb..fcbf4abbf381 100644 --- a/drivers/usb/host/xhci-dbg.c +++ b/drivers/usb/host/xhci-dbg.c | |||
@@ -364,6 +364,30 @@ void xhci_debug_ring(struct xhci_hcd *xhci, struct xhci_ring *ring) | |||
364 | xhci_debug_segment(xhci, seg); | 364 | xhci_debug_segment(xhci, seg); |
365 | } | 365 | } |
366 | 366 | ||
367 | void xhci_dbg_ep_rings(struct xhci_hcd *xhci, | ||
368 | unsigned int slot_id, unsigned int ep_index, | ||
369 | struct xhci_virt_ep *ep) | ||
370 | { | ||
371 | int i; | ||
372 | struct xhci_ring *ring; | ||
373 | |||
374 | if (ep->ep_state & EP_HAS_STREAMS) { | ||
375 | for (i = 1; i < ep->stream_info->num_streams; i++) { | ||
376 | ring = ep->stream_info->stream_rings[i]; | ||
377 | xhci_dbg(xhci, "Dev %d endpoint %d stream ID %d:\n", | ||
378 | slot_id, ep_index, i); | ||
379 | xhci_debug_segment(xhci, ring->deq_seg); | ||
380 | } | ||
381 | } else { | ||
382 | ring = ep->ring; | ||
383 | if (!ring) | ||
384 | return; | ||
385 | xhci_dbg(xhci, "Dev %d endpoint ring %d:\n", | ||
386 | slot_id, ep_index); | ||
387 | xhci_debug_segment(xhci, ring->deq_seg); | ||
388 | } | ||
389 | } | ||
390 | |||
367 | void xhci_dbg_erst(struct xhci_hcd *xhci, struct xhci_erst *erst) | 391 | void xhci_dbg_erst(struct xhci_hcd *xhci, struct xhci_erst *erst) |
368 | { | 392 | { |
369 | u32 addr = (u32) erst->erst_dma_addr; | 393 | u32 addr = (u32) erst->erst_dma_addr; |