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>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
4aab6ad24a
commit
83374e035b
@@ -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:
|
||||
|
Reference in New Issue
Block a user