[PATCH 0/2] usb: core: Improve device lifecycle debuggability

Kuen-Han Tsai posted 2 patches 2 months, 1 week ago
drivers/usb/core/Makefile |  4 ++++
drivers/usb/core/hub.c    | 30 +++++++++++++----------
drivers/usb/core/trace.c  |  6 +++++
drivers/usb/core/trace.h  | 61 +++++++++++++++++++++++++++++++++++++++++++++++
drivers/usb/core/usb.c    |  2 ++
5 files changed, 91 insertions(+), 12 deletions(-)
[PATCH 0/2] usb: core: Improve device lifecycle debuggability
Posted by Kuen-Han Tsai 2 months, 1 week ago
This series enhances USB core debuggability. The first patch refactors
device state updates into a new update_usb_device_state() helper 
function, centralizing logic and preparing for tracing.

The second patch adds tracepoints for USB device allocation and state 
changes, providing better visibility into the device lifecycle.

Signed-off-by: Kuen-Han Tsai <khtsai@google.com>
---
Kuen-Han Tsai (2):
      usb: core: Centralize device state update logic
      usb: core: Add tracepoints for device allocation and state changes

 drivers/usb/core/Makefile |  4 ++++
 drivers/usb/core/hub.c    | 30 +++++++++++++----------
 drivers/usb/core/trace.c  |  6 +++++
 drivers/usb/core/trace.h  | 61 +++++++++++++++++++++++++++++++++++++++++++++++
 drivers/usb/core/usb.c    |  2 ++
 5 files changed, 91 insertions(+), 12 deletions(-)
---
base-commit: 5472d60c129f75282d94ae5ad072ee6dfb7c7246
change-id: 20251012-usbcore-tracing-76f00c9b2b3e

Best regards,
-- 
Kuen-Han Tsai <khtsai@google.com>