Skip to content

thunderbolt: A couple of fixes

Mika Westerberg linux-usb 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5thunderbolt: Fix memory leak in marginingdrivers/thunderbolt/debugfs.c+6 -60 replies
2/5thunderbolt: Add missing UNSET_INBOUND_SBTX for retimer accessdrivers/thunderbolt/retimer.c drivers/thunderbolt/sb_regs.h drivers/thunderbolt/tb.h +1 more+37 -20 replies
3/5thunderbolt: Call tb_check_quirks() after initializing adaptersdrivers/thunderbolt/switch.c+2 -20 replies
4/5thunderbolt: Limit USB3 bandwidth of certain Intel USB4 host routersdrivers/thunderbolt/quirks.c drivers/thunderbolt/tb.h drivers/thunderbolt/usb4.c+49 -20 replies
5/5thunderbolt: Use scale field when allocating USB3 bandwidthdrivers/thunderbolt/usb4.c+17 -51 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/5] thunderbolt: A couple of fixes

Hi,

This series includes a couple of fixes for issues found. I'm planning to get these into v6.3-rc.

The first one is a memory leak fix.

The second one is fixing a reboot time issue reported by Christian that we finally were able to reproduce in the lab. The reason this happened only in Linux is that we enumerate retimers during link bring up and there is certain step missing after the enumeration that leads the link to not come up properly after soft-reboot. This should be fixed with issuing UNSET_INBOUND_SBTX after retimer access and this works in the lab.

@Christian, can you check that it solves the issue for you too?

The third one is a quirk that is needed for Intel hardware to limit the USB3 bandwidth accordingly.

Gil Fine (2):
thunderbolt: Add missing UNSET_INBOUND_SBTX for retimer access
thunderbolt: Limit USB3 bandwidth of certain Intel USB4 host routers

Mika Westerberg (3):
thunderbolt: Fix memory leak in margining
thunderbolt: Call tb_check_quirks() after initializing adapters
thunderbolt: Use scale field when allocating USB3 bandwidth

 drivers/thunderbolt/debugfs.c | 12 ++++----
 drivers/thunderbolt/quirks.c  | 31 ++++++++++++++++++++
 drivers/thunderbolt/retimer.c | 23 +++++++++++++--
 drivers/thunderbolt/sb_regs.h |  1 +
 drivers/thunderbolt/switch.c  |  4 +--
 drivers/thunderbolt/tb.h      |  4 +++
 drivers/thunderbolt/usb4.c    | 53 ++++++++++++++++++++++++++++++-----
 7 files changed, 111 insertions(+), 17 deletions(-)
Signature · 1 line
2.39.1