]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: dwc3: Add trace event for dwc3_set_prtcap
authorKuen-Han Tsai <khtsai@google.com>
Fri, 22 Aug 2025 09:23:45 +0000 (17:23 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Sep 2025 13:21:59 +0000 (15:21 +0200)
commit55f4ac8f93f4281134dfcf47de7b4588bb6074f2
tree2c24b3cda034f396e14857b7b9d63271ef7af83d
parentb570b346ddd727c4b41743a6a2f49e7217c5317f
usb: dwc3: Add trace event for dwc3_set_prtcap

Changes to the port capability can be indirectly observed by tracing
register writes to DWC3_GCTL. However, this requires interpreting the
raw value, which is neither intuitive nor precise for debugging.
Monitoring these mode changes is essential for resolving issues related
to USB role switching and enumeration.

Introduce a dedicated trace event to provide a human-readable log when
the port capability is configured.

Signed-off-by: Kuen-Han Tsai <khtsai@google.com>
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/20250822092411.173519-1-khtsai@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/core.c
drivers/usb/dwc3/debug.h
drivers/usb/dwc3/trace.h