Skip to content

usb: core: Improve device lifecycle debuggability

Kuen-Han Tsai linux-usb lkml 2 versions – In review

Get series with b4
b4 am [email protected] change-id 20251012-usbcore-tracing-76f00c9b2b3e

Versions newest first

  1. v2 Latest2 patches 1 replyIn review
  2. v12 patches 8 repliesSuperseded

Changes in v2 from the cover letter

- hub.c: Changed the inline function to a standard one.
- Makefile: Moved trace.o to the preceding line.
- trace.h: Changed the speed and state into strings.
- Link to v1: https://lore.kernel.org/r/[email protected]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2usb: core: Centralize device state update logicdrivers/usb/core/hub.c+16 -120 replies
2/2usb: core: Add tracepoints for device allocation and state changesdrivers/usb/core/Makefile drivers/usb/core/hub.c drivers/usb/core/trace.c +2 more+75 -10 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAlan Stern
SeriesR-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

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

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.

---
Changes in v2:
- hub.c: Changed the inline function to a standard one.
- Makefile: Moved trace.o to the preceding line.
- trace.h: Changed the speed and state into strings.
- Link to v1: https://lore.kernel.org/r/[email protected]

---
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 |  5 +++-
 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(+), 13 deletions(-)

---
base-commit: 5472d60c129f75282d94ae5ad072ee6dfb7c7246
change-id: 20251012-usbcore-tracing-76f00c9b2b3e

Best regards,

Signature · 1 line
Kuen-Han Tsai <[email protected]>