summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3/core.h
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2014-04-30 17:45:10 -0500
committerFelipe Balbi <balbi@ti.com>2014-09-05 09:55:51 -0500
commit2c4cbe6e5a9c71408b496e00a78ea9284e98af16 (patch)
treec90423ae169751bf43925c9a37734762199ec803 /drivers/usb/dwc3/core.h
parent3ece0ec474bf3cea9eefa7f92e3d4b6c3f9f71fd (diff)
downloadlinux-2c4cbe6e5a9c71408b496e00a78ea9284e98af16.tar.bz2
usb: dwc3: add tracepoints to aid debugging
When we're debugging hard-to-reproduce and time-sensitive use cases, printk() poses too much overhead. That's when the kernel's tracing infrastructure comes into play. This patch implements a few initial tracepoints for the dwc3 driver. More traces can be added as necessary in order to ease the task of debugging dwc3. Reviewed-by: Paul Zimmerman <paulz@synopsys.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3/core.h')
-rw-r--r--drivers/usb/dwc3/core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h
index c1237453465e..66f62563bcf9 100644
--- a/drivers/usb/dwc3/core.h
+++ b/drivers/usb/dwc3/core.h
@@ -33,6 +33,8 @@
#include <linux/phy/phy.h>
+#define DWC3_MSG_MAX 500
+
/* Global constants */
#define DWC3_EP0_BOUNCE_SIZE 512
#define DWC3_ENDPOINTS_NUM 32