thunderbolt: Add debugfs support
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest9 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | thunderbolt: Move struct tb_cap_any to tb_regs.hdrivers/ drivers/ | +14 | 0 replies | |
| 2/9 | thunderbolt: Introduce tb_port_next_cap()drivers/ drivers/ | +32 | 0 replies | |
| 3/9 | thunderbolt: Introduce tb_switch_next_cap()drivers/ drivers/ | +54 | 1 reply | |
| 4/9 | thunderbolt: Introduce tb_port_is_nhi()drivers/ drivers/ | +6 | 0 replies | |
| 5/9 | thunderbolt: Check for Intel vendor ID when identifying controllerdrivers/ | +35 | 0 replies | |
| 6/9 | thunderbolt: Introduce tb_switch_is_ice_lake()drivers/ | +12 | 0 replies | |
| 7/9 | thunderbolt: Introduce tb_switch_is_tiger_lake()drivers/ | +12 | 0 replies | |
| 8/9 | thunderbolt: No need to warn in TB_CFG_ERROR_INVALID_CONFIG_SPACEdrivers/ | +2 | 0 replies | |
| 9/9 | thunderbolt: Add debugfs interfacedrivers/ drivers/ drivers/ +4 more | +742 | 2 replies |
Reviews trailers per patch
2 of 9 patches have a Reviewed-by or Acked-by.
| Patch | Greg Kroah-Hartman |
|---|---|
| 1/9 | |
| 2/9 | |
| 3/9 | R-b |
| 4/9 | |
| 5/9 | |
| 6/9 | |
| 7/9 | |
| 8/9 | |
| 9/9 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/9] thunderbolt: Add debugfs support
Hi all,
This series adds debugfs support to the driver. This is useful when debugging different hardware/software issues as the developer can dump different config spaces of the router including adapter, path and counters config spaces. Each connected router is exposed in debugfs under thunderbolt directory, and the naming follows what we have in sysfs.
This also adds a capability to write certain registers but that needs to be enabled through Kconfig option, not supposed to be enabled by distros (or regular users).
The series is based on top of my "Power Management improvements" patches which can be viewed in the below link:
https://lore.kernel.org/linux-usb/[email protected]/
Gil Fine (2):
thunderbolt: Introduce tb_switch_is_tiger_lake()
thunderbolt: Add debugfs interface
Mika Westerberg (7):
thunderbolt: Move struct tb_cap_any to tb_regs.h
thunderbolt: Introduce tb_port_next_cap()
thunderbolt: Introduce tb_switch_next_cap()
thunderbolt: Introduce tb_port_is_nhi()
thunderbolt: Check for Intel vendor ID when identifying controller
thunderbolt: Introduce tb_switch_is_ice_lake()
thunderbolt: No need to warn in TB_CFG_ERROR_INVALID_CONFIG_SPACE
drivers/thunderbolt/Kconfig | 10 + drivers/thunderbolt/Makefile | 1 + drivers/thunderbolt/cap.c | 126 ++++-- drivers/thunderbolt/ctl.c | 5 +- drivers/thunderbolt/debugfs.c | 700 ++++++++++++++++++++++++++++++++++ drivers/thunderbolt/domain.c | 13 +- drivers/thunderbolt/switch.c | 5 +- drivers/thunderbolt/tb.h | 109 ++++-- drivers/thunderbolt/tb_regs.h | 18 +- 9 files changed, 909 insertions(+), 78 deletions(-) create mode 100644 drivers/thunderbolt/debugfs.c
Signature · 1 line
2.28.0