Skip to content

thunderbolt: Fix issues with more complex endpoints.

Andreas Noever lkml 1 version Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2thunderbolt: Read port configuration from eeprom.drivers/thunderbolt/eeprom.c drivers/thunderbolt/switch.c drivers/thunderbolt/tb.h+270 -70 replies
2/2thunderbolt: Fix nontrivial endpoint devices.drivers/thunderbolt/ctl.c drivers/thunderbolt/switch.c drivers/thunderbolt/tb.c+31 -180 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2] thunderbolt: Fix issues with more complex endpoints.

Hi,

I have got my hand on a slightly more complex Thunderbolt device (a Startech docking station). This series fixes the following issues that I have observed with this device:

- Some ports on this device are disabled. Accessing them results in an error.
- This device uses both Thunderbolt links which are represented as two ports on the switch. We have to ensure that we only scan one of these ports.

Part 1 of the series reads the switch configuration (disabled ports and which port pairs are "dual link ports") from eeprom. Part 2 uses this information to avoid scanning these ports.

Andreas Noever (2):
thunderbolt: Read port configuration from eeprom.
thunderbolt: Fix nontrivial endpoint devices.

 drivers/thunderbolt/ctl.c    |   2 +-
 drivers/thunderbolt/eeprom.c | 266 ++++++++++++++++++++++++++++++++++++++++++-
 drivers/thunderbolt/switch.c |  44 ++++---
 drivers/thunderbolt/tb.c     |   5 +
 drivers/thunderbolt/tb.h     |   7 +-
 5 files changed, 300 insertions(+), 24 deletions(-)
Signature · 1 line
2.0.0