diff options
author | Xenia Ragiadakou <burzalodowa@gmail.com> | 2013-08-06 00:52:45 -0400 |
---|---|---|
committer | Sarah Sharp <sarah.a.sharp@linux.intel.com> | 2013-08-13 19:05:41 -0400 |
commit | 4bdfe4c38fd5b06da558050a3288a0a48825a3e7 (patch) | |
tree | f241e6624b14dca4d6013c0da416d36b8f278734 /drivers/usb/host/xhci-hub.c | |
parent | 3a7fa5bef06e1757d1aded8d78afd041b4552e11 (diff) |
xhci: add trace for debug messages related to quirks
This patch defines a new trace event, which is called xhci_dbg_quirks
and belongs in the event class xhci_log_msg, and adds tracepoints that
trace the debug messages associated with xHCs' quirks.
Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Diffstat (limited to 'drivers/usb/host/xhci-hub.c')
-rw-r--r-- | drivers/usb/host/xhci-hub.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/usb/host/xhci-hub.c b/drivers/usb/host/xhci-hub.c index 93f3fdf0ff0a..fae697ed0b70 100644 --- a/drivers/usb/host/xhci-hub.c +++ b/drivers/usb/host/xhci-hub.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <asm/unaligned.h> | 24 | #include <asm/unaligned.h> |
25 | 25 | ||
26 | #include "xhci.h" | 26 | #include "xhci.h" |
27 | #include "xhci-trace.h" | ||
27 | 28 | ||
28 | #define PORT_WAKE_BITS (PORT_WKOC_E | PORT_WKDISC_E | PORT_WKCONN_E) | 29 | #define PORT_WAKE_BITS (PORT_WKOC_E | PORT_WKDISC_E | PORT_WKCONN_E) |
29 | #define PORT_RWC_BITS (PORT_CSC | PORT_PEC | PORT_WRC | PORT_OCC | \ | 30 | #define PORT_RWC_BITS (PORT_CSC | PORT_PEC | PORT_WRC | PORT_OCC | \ |
@@ -535,8 +536,10 @@ void xhci_del_comp_mod_timer(struct xhci_hcd *xhci, u32 status, u16 wIndex) | |||
535 | xhci->port_status_u0 |= 1 << wIndex; | 536 | xhci->port_status_u0 |= 1 << wIndex; |
536 | if (xhci->port_status_u0 == all_ports_seen_u0) { | 537 | if (xhci->port_status_u0 == all_ports_seen_u0) { |
537 | del_timer_sync(&xhci->comp_mode_recovery_timer); | 538 | del_timer_sync(&xhci->comp_mode_recovery_timer); |
538 | xhci_dbg(xhci, "All USB3 ports have entered U0 already!\n"); | 539 | xhci_dbg_trace(xhci, trace_xhci_dbg_quirks, |
539 | xhci_dbg(xhci, "Compliance Mode Recovery Timer Deleted.\n"); | 540 | "All USB3 ports have entered U0 already!"); |
541 | xhci_dbg_trace(xhci, trace_xhci_dbg_quirks, | ||
542 | "Compliance Mode Recovery Timer Deleted."); | ||
540 | } | 543 | } |
541 | } | 544 | } |
542 | } | 545 | } |