Commit 1c1b46b0 authored by Kuen-Han Tsai's avatar Kuen-Han Tsai
Browse files

FROMGIT: 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: default avatarKuen-Han Tsai <khtsai@google.com>
Acked-by: default avatarThinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/20250822092411.173519-1-khtsai@google.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

(cherry picked from commit 55f4ac8f https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git

 usb-next)

Bug: 427760780
Change-Id: I2ccfcf321fc2ae70b1ff0f4e4fbf6cbc6ac5c1e4
Signed-off-by: default avatarKuen-Han Tsai <khtsai@google.com>
parent aff2255d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment