diff options
Diffstat (limited to 'drivers/usb/host/ehci-dbg.c')
-rw-r--r-- | drivers/usb/host/ehci-dbg.c | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/drivers/usb/host/ehci-dbg.c b/drivers/usb/host/ehci-dbg.c index 7561966fbdc4..f0c00de035ef 100644 --- a/drivers/usb/host/ehci-dbg.c +++ b/drivers/usb/host/ehci-dbg.c | |||
@@ -404,9 +404,9 @@ struct debug_buffer { | |||
404 | 404 | ||
405 | #define speed_char(info1) ({ char tmp; \ | 405 | #define speed_char(info1) ({ char tmp; \ |
406 | switch (info1 & (3 << 12)) { \ | 406 | switch (info1 & (3 << 12)) { \ |
407 | case 0 << 12: tmp = 'f'; break; \ | 407 | case QH_FULL_SPEED: tmp = 'f'; break; \ |
408 | case 1 << 12: tmp = 'l'; break; \ | 408 | case QH_LOW_SPEED: tmp = 'l'; break; \ |
409 | case 2 << 12: tmp = 'h'; break; \ | 409 | case QH_HIGH_SPEED: tmp = 'h'; break; \ |
410 | default: tmp = '?'; break; \ | 410 | default: tmp = '?'; break; \ |
411 | }; tmp; }) | 411 | }; tmp; }) |
412 | 412 | ||
@@ -538,12 +538,13 @@ static ssize_t fill_async_buffer(struct debug_buffer *buf) | |||
538 | spin_lock_irqsave (&ehci->lock, flags); | 538 | spin_lock_irqsave (&ehci->lock, flags); |
539 | for (qh = ehci->async->qh_next.qh; size > 0 && qh; qh = qh->qh_next.qh) | 539 | for (qh = ehci->async->qh_next.qh; size > 0 && qh; qh = qh->qh_next.qh) |
540 | qh_lines (ehci, qh, &next, &size); | 540 | qh_lines (ehci, qh, &next, &size); |
541 | if (ehci->reclaim && size > 0) { | 541 | if (ehci->async_unlink && size > 0) { |
542 | temp = scnprintf (next, size, "\nreclaim =\n"); | 542 | temp = scnprintf(next, size, "\nunlink =\n"); |
543 | size -= temp; | 543 | size -= temp; |
544 | next += temp; | 544 | next += temp; |
545 | 545 | ||
546 | for (qh = ehci->reclaim; size > 0 && qh; qh = qh->reclaim) | 546 | for (qh = ehci->async_unlink; size > 0 && qh; |
547 | qh = qh->unlink_next) | ||
547 | qh_lines (ehci, qh, &next, &size); | 548 | qh_lines (ehci, qh, &next, &size); |
548 | } | 549 | } |
549 | spin_unlock_irqrestore (&ehci->lock, flags); | 550 | spin_unlock_irqrestore (&ehci->lock, flags); |
@@ -705,6 +706,8 @@ static const char *rh_state_string(struct ehci_hcd *ehci) | |||
705 | return "suspended"; | 706 | return "suspended"; |
706 | case EHCI_RH_RUNNING: | 707 | case EHCI_RH_RUNNING: |
707 | return "running"; | 708 | return "running"; |
709 | case EHCI_RH_STOPPING: | ||
710 | return "stopping"; | ||
708 | } | 711 | } |
709 | return "?"; | 712 | return "?"; |
710 | } | 713 | } |
@@ -841,16 +844,17 @@ static ssize_t fill_registers_buffer(struct debug_buffer *buf) | |||
841 | } | 844 | } |
842 | } | 845 | } |
843 | 846 | ||
844 | if (ehci->reclaim) { | 847 | if (ehci->async_unlink) { |
845 | temp = scnprintf(next, size, "reclaim qh %p\n", ehci->reclaim); | 848 | temp = scnprintf(next, size, "async unlink qh %p\n", |
849 | ehci->async_unlink); | ||
846 | size -= temp; | 850 | size -= temp; |
847 | next += temp; | 851 | next += temp; |
848 | } | 852 | } |
849 | 853 | ||
850 | #ifdef EHCI_STATS | 854 | #ifdef EHCI_STATS |
851 | temp = scnprintf (next, size, | 855 | temp = scnprintf (next, size, |
852 | "irq normal %ld err %ld reclaim %ld (lost %ld)\n", | 856 | "irq normal %ld err %ld iaa %ld (lost %ld)\n", |
853 | ehci->stats.normal, ehci->stats.error, ehci->stats.reclaim, | 857 | ehci->stats.normal, ehci->stats.error, ehci->stats.iaa, |
854 | ehci->stats.lost_iaa); | 858 | ehci->stats.lost_iaa); |
855 | size -= temp; | 859 | size -= temp; |
856 | next += temp; | 860 | next += temp; |