Tony Lindgren 318324e6df usb: musb: Implement tracing for state change events
The devctl register on musb is the only way to get state information
on musb. The hardware can easily get confused because it tries to do
things on it's own automagically, and things like slow VBUS rise can
make things fail.

Let's make it easier to debug the ongoing state change issues that
keep popping up on regular basis and add tracing support.

With these changes we can easily trace musb state change events with:

echo 1 > /sys/kernel/debug/tracing/events/musb/musb_state/enable
cat /sys/kernel/debug/tracing/trace_pipe
echo 0 > /sys/kernel/debug/tracing/events/musb/musb_state/enable

Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: Andreas Kemnade <andreas@kemnade.info>
Cc: Bhushan Shah <bshah@kde.org>
Cc: Drew Fustini <drew@beagleboard.org>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/20210604080536.12185-2-tony@atomide.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-06-14 10:25:16 +02:00
..
2021-06-11 17:57:24 +02:00
2021-05-05 13:24:11 -07:00
2021-06-14 09:18:07 +02:00
2021-04-18 09:36:56 +03:00
2021-06-12 11:59:58 -07:00
2021-06-12 12:13:55 -07:00
2021-05-20 06:31:52 -10:00
2021-04-28 15:59:13 -07:00
2021-05-23 11:39:02 +02:00
2021-04-26 12:11:52 -07:00
2021-04-27 18:09:44 -07:00
2021-05-01 10:14:08 -07:00
2021-04-08 19:18:07 +02:00
2021-06-12 11:59:58 -07:00
2021-04-28 15:59:13 -07:00
2021-06-10 10:53:04 -07:00
2021-06-14 09:18:07 +02:00
2021-05-01 10:14:08 -07:00
2021-05-05 12:53:16 -07:00
2021-06-08 09:41:16 -07:00
2021-05-04 11:13:33 -07:00
2021-05-05 13:24:11 -07:00
2021-05-03 12:15:21 -07:00
2021-06-13 12:25:33 -07:00
2021-06-05 15:43:11 -07:00
2021-05-05 13:31:39 -07:00
2021-04-28 15:59:13 -07:00
2021-05-05 13:31:39 -07:00