diff options
author | Chunfeng Yun <chunfeng.yun@mediatek.com> | 2019-03-21 03:53:48 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-03-26 08:40:14 +0100 |
commit | 83374e035b6286731c5aa617844c7b724294c2a7 (patch) | |
tree | 212fe872a4028092f183a1777089f6eee84fff3a /drivers/usb/mtu3/mtu3_dr.c | |
parent | usb: mtu3: move vbus and mode debugfs interfaces into mtu3_debugfs.c (diff) | |
download | linux-83374e035b6286731c5aa617844c7b724294c2a7.tar.xz 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/mtu3_dr.c')
-rw-r--r-- | drivers/usb/mtu3/mtu3_dr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/mtu3/mtu3_dr.c b/drivers/usb/mtu3/mtu3_dr.c index ff2956272e15..82913120622b 100644 --- a/drivers/usb/mtu3/mtu3_dr.c +++ b/drivers/usb/mtu3/mtu3_dr.c @@ -141,6 +141,7 @@ static void ssusb_set_mailbox(struct otg_switch_mtk *otg_sx, struct mtu3 *mtu = ssusb->u3d; dev_dbg(ssusb->dev, "mailbox state(%d)\n", status); + mtu3_dbg_trace(ssusb->dev, "mailbox %d", status); switch (status) { case MTU3_ID_GROUND: |