Skip to content

thunderbolt: Rework TMU and CLx support

Mika Westerberg linux-usb 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest20 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/20thunderbolt: Introduce tb_switch_downstream_port()drivers/thunderbolt/acpi.c drivers/thunderbolt/icm.c drivers/thunderbolt/switch.c +4 more+53 -550 replies
2/20thunderbolt: Introduce tb_xdomain_downstream_port()drivers/thunderbolt/tb.h drivers/thunderbolt/xdomain.c+18 -90 replies
3/20thunderbolt: Fix a couple of style issues in TMU codedrivers/thunderbolt/tmu.c+11 -120 replies
4/20thunderbolt: Drop useless 'unidirectional' parameter from tb_switch_tmu_is_enabled()drivers/thunderbolt/tb.c drivers/thunderbolt/tb.h drivers/thunderbolt/tmu.c+9 -140 replies
5/20thunderbolt: Rework Titan Ridge TMU objection disable functiondrivers/thunderbolt/tmu.c+10 -140 replies
6/20thunderbolt: Get rid of tb_switch_enable_tmu_1st_child()drivers/thunderbolt/tb.c drivers/thunderbolt/tb.h drivers/thunderbolt/tmu.c+34 -400 replies
7/20thunderbolt: Move TMU configuration to tb_enable_tmu()drivers/thunderbolt/tb.c+10 -200 replies
8/20thunderbolt: Move tb_enable_tmu() close to other TMU functionsdrivers/thunderbolt/tb.c+29 -290 replies
9/20thunderbolt: Check valid TMU configuration in tb_switch_tmu_configure()drivers/thunderbolt/tb.c drivers/thunderbolt/tb.h drivers/thunderbolt/tmu.c+14 -100 replies
10/20thunderbolt: Move CLx support functions into clx.cdrivers/thunderbolt/Makefile drivers/thunderbolt/clx.c drivers/thunderbolt/debugfs.c +4 more+381 -3780 replies
11/20thunderbolt: Get rid of __tb_switch_[en|dis]able_clx()drivers/thunderbolt/clx.c+42 -490 replies
12/20thunderbolt: Move CLx enabling into tb_enable_clx()drivers/thunderbolt/tb.c+17 -170 replies
13/20thunderbolt: Switch CL states from enum to a bitmaskdrivers/thunderbolt/clx.c drivers/thunderbolt/switch.c drivers/thunderbolt/tb.c +1 more+113 -1190 replies
14/20thunderbolt: Check for first depth router in tb.cdrivers/thunderbolt/clx.c drivers/thunderbolt/tb.c+16 -160 replies
15/20thunderbolt: Do not call CLx functions from TMU codedrivers/thunderbolt/tmu.c+0 -230 replies
16/20thunderbolt: Prefix TMU post time log message with "TMU: "drivers/thunderbolt/tmu.c+1 -10 replies
17/20thunderbolt: Prefix CL state related log messages with "CLx: "drivers/thunderbolt/clx.c+4 -40 replies
18/20thunderbolt: Initialize CL states from the hardwaredrivers/thunderbolt/clx.c drivers/thunderbolt/switch.c drivers/thunderbolt/tb.h+78 -270 replies
19/20thunderbolt: Make tb_switch_clx_disable() return CL states that were enableddrivers/thunderbolt/clx.c drivers/thunderbolt/debugfs.c+30 -130 replies
20/20thunderbolt: Disable CL states when a DMA tunnel is establisheddrivers/thunderbolt/clx.c drivers/thunderbolt/tb.c+58 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/20] thunderbolt: Rework TMU and CLx support

Hi all,

This series reworks the TMU and CLx support code to match better what we do elsewhere in the driver and prepares for USB4v2 adaptive TMU support that we are going to add in the subsequent series (I'm sending that out later this week). I've split this part as separate from USB4v2 support hoping that it makes reviewing them easier.

Gil Fine (1):
thunderbolt: Introduce tb_switch_downstream_port()

Mika Westerberg (19):
thunderbolt: Introduce tb_xdomain_downstream_port()
thunderbolt: Fix a couple of style issues in TMU code
thunderbolt: Drop useless 'unidirectional' parameter from tb_switch_tmu_is_enabled()
thunderbolt: Rework Titan Ridge TMU objection disable function
thunderbolt: Get rid of tb_switch_enable_tmu_1st_child()
thunderbolt: Move TMU configuration to tb_enable_tmu()
thunderbolt: Move tb_enable_tmu() close to other TMU functions
thunderbolt: Check valid TMU configuration in tb_switch_tmu_configure()
thunderbolt: Move CLx support functions into clx.c
thunderbolt: Get rid of __tb_switch_[en|dis]able_clx()
thunderbolt: Move CLx enabling into tb_enable_clx()
thunderbolt: Switch CL states from enum to a bitmask
thunderbolt: Check for first depth router in tb.c
thunderbolt: Do not call CLx functions from TMU code
thunderbolt: Prefix TMU post time log message with "TMU: "
thunderbolt: Prefix CL state related log messages with "CLx: "
thunderbolt: Initialize CL states from the hardware
thunderbolt: Make tb_switch_clx_disable() return CL states that were enabled
thunderbolt: Disable CL states when a DMA tunnel is established

 drivers/thunderbolt/Makefile  |   2 +-
 drivers/thunderbolt/acpi.c    |   5 +-
 drivers/thunderbolt/clx.c     | 416 ++++++++++++++++++++++++++++++++++
 drivers/thunderbolt/debugfs.c |  35 ++-
 drivers/thunderbolt/icm.c     |  24 +-
 drivers/thunderbolt/switch.c  | 378 +-----------------------------
 drivers/thunderbolt/tb.c      | 227 +++++++++++++------
 drivers/thunderbolt/tb.h      | 102 ++++-----
 drivers/thunderbolt/tmu.c     | 152 ++++---------
 drivers/thunderbolt/usb4.c    |   9 +-
 drivers/thunderbolt/xdomain.c |  16 +-
 11 files changed, 719 insertions(+), 647 deletions(-)
 create mode 100644 drivers/thunderbolt/clx.c
Signature · 1 line
2.39.2