linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/9] thunderbolt: Add debugfs support
@ 2020-08-26 11:07 Mika Westerberg
  2020-08-26 11:07 ` [PATCH 1/9] thunderbolt: Move struct tb_cap_any to tb_regs.h Mika Westerberg
                   ` (9 more replies)
  0 siblings, 10 replies; 14+ messages in thread
From: Mika Westerberg @ 2020-08-26 11:07 UTC (permalink / raw)
  To: linux-usb
  Cc: Michael Jamet, Yehezkel Bernat, Andreas Noever, Mika Westerberg,
	Gil Fine, Lukas Wunner, Greg Kroah-Hartman

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@linux.intel.com/

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


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2020-09-03  9:27 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-26 11:07 [PATCH 0/9] thunderbolt: Add debugfs support Mika Westerberg
2020-08-26 11:07 ` [PATCH 1/9] thunderbolt: Move struct tb_cap_any to tb_regs.h Mika Westerberg
2020-08-26 11:07 ` [PATCH 2/9] thunderbolt: Introduce tb_port_next_cap() Mika Westerberg
2020-08-26 11:07 ` [PATCH 3/9] thunderbolt: Introduce tb_switch_next_cap() Mika Westerberg
2020-09-01  9:01   ` [PATCH v2 " Mika Westerberg
2020-08-26 11:07 ` [PATCH 4/9] thunderbolt: Introduce tb_port_is_nhi() Mika Westerberg
2020-08-26 11:07 ` [PATCH 5/9] thunderbolt: Check for Intel vendor ID when identifying controller Mika Westerberg
2020-08-26 11:07 ` [PATCH 6/9] thunderbolt: Introduce tb_switch_is_ice_lake() Mika Westerberg
2020-08-26 11:07 ` [PATCH 7/9] thunderbolt: Introduce tb_switch_is_tiger_lake() Mika Westerberg
2020-08-26 11:07 ` [PATCH 8/9] thunderbolt: No need to warn in TB_CFG_ERROR_INVALID_CONFIG_SPACE Mika Westerberg
2020-08-26 11:07 ` [PATCH 9/9] thunderbolt: Add debugfs interface Mika Westerberg
2020-08-26 11:22   ` Greg Kroah-Hartman
2020-08-26 11:40     ` Mika Westerberg
2020-09-03  9:27 ` [PATCH 0/9] thunderbolt: Add debugfs support Mika Westerberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).