summaryrefslogtreecommitdiffstats
path: root/drivers/usb/mtu3/Makefile
diff options
context:
space:
mode:
authorChunfeng Yun2019-03-21 03:53:48 +0100
committerGreg Kroah-Hartman2019-03-26 08:40:14 +0100
commit83374e035b6286731c5aa617844c7b724294c2a7 (patch)
tree212fe872a4028092f183a1777089f6eee84fff3a /drivers/usb/mtu3/Makefile
parentusb: mtu3: move vbus and mode debugfs interfaces into mtu3_debugfs.c (diff)
downloadkernel-qcow2-linux-83374e035b6286731c5aa617844c7b724294c2a7.tar.gz
kernel-qcow2-linux-83374e035b6286731c5aa617844c7b724294c2a7.tar.xz
kernel-qcow2-linux-83374e035b6286731c5aa617844c7b724294c2a7.zip
usb: mtu3: add tracepoints to help debug
This patch implements a few initial tracepoints for the mtu3 driver. More traces can be added as necessary in order to ease the task of debugging. Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/mtu3/Makefile')
-rw-r--r--drivers/usb/mtu3/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/usb/mtu3/Makefile b/drivers/usb/mtu3/Makefile
index 7c1826bbcebb..3bf8cbcc1add 100644
--- a/drivers/usb/mtu3/Makefile
+++ b/drivers/usb/mtu3/Makefile
@@ -2,10 +2,17 @@
ccflags-$(CONFIG_USB_MTU3_DEBUG) += -DDEBUG
+# define_trace.h needs to know how to find our header
+CFLAGS_mtu3_trace.o := -I$(src)
+
obj-$(CONFIG_USB_MTU3) += mtu3.o
mtu3-y := mtu3_plat.o
+ifneq ($(CONFIG_TRACING),)
+ mtu3-y += mtu3_trace.o
+endif
+
ifneq ($(filter y,$(CONFIG_USB_MTU3_HOST) $(CONFIG_USB_MTU3_DUAL_ROLE)),)
mtu3-y += mtu3_host.o
endif