summaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb/musb_debug.h
diff options
context:
space:
mode:
authorBin Liu <b-liu@ti.com>2016-06-30 19:12:21 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-07-17 01:23:57 +0200
commitf89252ad19a1a93095bdee58a4d857023f069280 (patch)
tree33b73ccbea6380093c8b0983fa17c87f9dcdafcc /drivers/usb/musb/musb_debug.h
parentMerge tag 'phy-for-4.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/... (diff)
downloadlinux-f89252ad19a1a93095bdee58a4d857023f069280.tar.xz
linux-f89252ad19a1a93095bdee58a4d857023f069280.zip
usb: musb: add tracepoints support for debugging
To avoid printk() overhead while debugging, this patch implements the foundation of tracepoints logging for musb driver to make debug easier. Signed-off-by: Bin Liu <b-liu@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/musb/musb_debug.h')
-rw-r--r--drivers/usb/musb/musb_debug.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/musb/musb_debug.h b/drivers/usb/musb/musb_debug.h
index 27ba8f799462..9a78877a8afe 100644
--- a/drivers/usb/musb/musb_debug.h
+++ b/drivers/usb/musb/musb_debug.h
@@ -42,6 +42,8 @@
#define INFO(fmt, args...) yprintk(KERN_INFO, fmt, ## args)
#define ERR(fmt, args...) yprintk(KERN_ERR, fmt, ## args)
+void musb_dbg(struct musb *musb, const char *fmt, ...);
+
#ifdef CONFIG_DEBUG_FS
int musb_init_debugfs(struct musb *musb);
void musb_exit_debugfs(struct musb *musb);