]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: typec: ucsi: Invoke ucsi_run_command tracepoint
authorLoic Poulain <loic.poulain@oss.qualcomm.com>
Tue, 17 Feb 2026 10:34:03 +0000 (11:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Mar 2026 14:38:19 +0000 (15:38 +0100)
commit78bf06db167b1cddc7f46c2d30c11cca8e32b5d8
tree08330c750d8dfa7853ecece72e273bcb16218090
parent99df63d20dabda8d7ae01bcca7cdb1e92110a555
usb: typec: ucsi: Invoke ucsi_run_command tracepoint

The ucsi_run_command trace event is exposed in tracefs, but it never
produces any output because the UCSI core never invokes the associated
tracepoint. As a result, enabling the event under events/ucsi/ yields
no traces, preventing users from inspecting UCSI command sequencing.

Wire the tracepoint into the UCSI command path so that commands are
properly reported.

Example:
50.692342: ucsi_run_command: GET_CONNECTOR_STATUS -> OK (err=0)
50.692345: ucsi_connector_change: port0 status: change=4800, ...
51.750298: ucsi_run_command: GET_CABLE_PROPERTY -> FAIL (err=-5)
51.773360: ucsi_run_command: GET_CONNECTOR_STATUS -> OK (err=0)

Signed-off-by: Loic Poulain <loic.poulain@oss.qualcomm.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://patch.msgid.link/20260217103403.1956-1-loic.poulain@oss.qualcomm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/ucsi/ucsi.c