WSL2-Linux-Kernel/drivers/usb/musb
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
..
Kconfig
Makefile
am35x.c
cppi_dma.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
cppi_dma.h
da8xx.c
davinci.c
davinci.h
jz4740.c usb: musb: jz4740: Add missing CR to error strings 2021-02-05 10:27:18 +01:00
mediatek.c usb: musb: Fix an error message 2021-05-10 16:17:57 +02:00
musb_core.c usb: musb: Implement tracing for state change events 2021-06-14 10:25:16 +02:00
musb_core.h usb: musb: musb_core: Add space after that ',' 2021-04-22 10:49:22 +02:00
musb_cppi41.c
musb_debug.h
musb_debugfs.c
musb_dma.h
musb_dsps.c Revert "usb: musb: convert to devm_platform_ioremap_resource_byname" 2020-11-13 14:30:23 +01:00
musb_gadget.c usb: musb: Fix spelling mistake "tranfer" -> "transfer" 2021-05-10 16:20:37 +02:00
musb_gadget.h
musb_gadget_ep0.c usb: musb: gadget: Use fallthrough pseudo-keyword 2020-10-10 12:32:29 +02:00
musb_host.c usb: musb: Remove unused function argument dma, qh, offset, length 2021-05-10 16:21:09 +02:00
musb_host.h usb: musb: Remove duplicate declaration of functions 2021-05-10 16:20:41 +02:00
musb_io.h
musb_regs.h
musb_trace.c
musb_trace.h usb: musb: Implement tracing for state change events 2021-06-14 10:25:16 +02:00
musb_virthub.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
musbhsdma.c usb: musb: dma: Remove unused variable 2021-02-05 10:27:18 +01:00
omap2430.c usb: musb: Add missing PM suspend and resume functions for 2430 glue 2021-05-21 14:07:16 +02:00
omap2430.h
sunxi.c
tusb6010.c usb: Fix fall-through warnings for Clang 2020-11-23 17:46:01 +01:00
tusb6010.h
tusb6010_omap.c
ux500.c
ux500_dma.c