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/20200819115905.59834-1-mika.westerberg@xxxxxxxxxxxxxxx/ 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 -- 2.28.0