]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: udc: Add trace event for usb_gadget_set_state
authorKuen-Han Tsai <khtsai@google.com>
Mon, 18 Aug 2025 08:27:19 +0000 (16:27 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Sep 2025 12:03:14 +0000 (14:03 +0200)
commit7bf1158514e410310aec975e630cec99d4e4092f
tree6e8c3708c10d2144cdb4cad2b960d87b82736d76
parente77ee1d2a8fa0f3179d4ac7b7d35b555da6a8cea
usb: udc: Add trace event for usb_gadget_set_state

While the userspace program can be notified of gadget state changes,
timing issue can lead to missed transitions when reading the state
value.

Introduce a trace event for usb_gadget_set_state to reliably track state
transitions.

Signed-off-by: Kuen-Han Tsai <khtsai@google.com>
Link: https://lore.kernel.org/r/20250818082722.2952867-1-khtsai@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/core.c
drivers/usb/gadget/udc/trace.h