diff options
author | Xenia Ragiadakou <burzalodowa@gmail.com> | 2013-07-31 00:35:27 -0400 |
---|---|---|
committer | Sarah Sharp <sarah.a.sharp@linux.intel.com> | 2013-08-13 19:05:39 -0400 |
commit | 3a7fa5bef06e1757d1aded8d78afd041b4552e11 (patch) | |
tree | 924b372520502e54e296be99f8f1069c88ed0717 /drivers/usb/host/xhci-mem.c | |
parent | 84a99f6fc5d4a2b7583aa287979268a8bb926367 (diff) |
xhci: add trace for debug messages related to changing contexts
This patch defines a new trace event, which is called xhci_dbg_context_change
and belongs in the event class xhci_log_msg, and adds tracepoints for tracing
the debug messages related to context updates performed with Configure Endpoint
and Evaluate Context commands.
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-mem.c')
-rw-r--r-- | drivers/usb/host/xhci-mem.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c index b881bc1697f9..b1bb59b58b25 100644 --- a/drivers/usb/host/xhci-mem.c +++ b/drivers/usb/host/xhci-mem.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <linux/dmapool.h> | 26 | #include <linux/dmapool.h> |
27 | 27 | ||
28 | #include "xhci.h" | 28 | #include "xhci.h" |
29 | #include "xhci-trace.h" | ||
29 | 30 | ||
30 | /* | 31 | /* |
31 | * Allocates a generic ring segment from the ring pool, sets the dma address, | 32 | * Allocates a generic ring segment from the ring pool, sets the dma address, |
@@ -661,7 +662,8 @@ void xhci_setup_streams_ep_input_ctx(struct xhci_hcd *xhci, | |||
661 | * fls(0) = 0, fls(0x1) = 1, fls(0x10) = 2, fls(0x100) = 3, etc. | 662 | * fls(0) = 0, fls(0x1) = 1, fls(0x10) = 2, fls(0x100) = 3, etc. |
662 | */ | 663 | */ |
663 | max_primary_streams = fls(stream_info->num_stream_ctxs) - 2; | 664 | max_primary_streams = fls(stream_info->num_stream_ctxs) - 2; |
664 | xhci_dbg(xhci, "Setting number of stream ctx array entries to %u\n", | 665 | xhci_dbg_trace(xhci, trace_xhci_dbg_context_change, |
666 | "Setting number of stream ctx array entries to %u", | ||
665 | 1 << (max_primary_streams + 1)); | 667 | 1 << (max_primary_streams + 1)); |
666 | ep_ctx->ep_info &= cpu_to_le32(~EP_MAXPSTREAMS_MASK); | 668 | ep_ctx->ep_info &= cpu_to_le32(~EP_MAXPSTREAMS_MASK); |
667 | ep_ctx->ep_info |= cpu_to_le32(EP_MAXPSTREAMS(max_primary_streams) | 669 | ep_ctx->ep_info |= cpu_to_le32(EP_MAXPSTREAMS(max_primary_streams) |