[SRU] [I/Unstable/OEM-5.13] [PATCH 0/7] Add USB4 support for AMD SoC

Kai-Heng Feng kai.heng.feng at canonical.com
Wed Aug 25 05:23:28 UTC 2021


BugLink: https://bugs.launchpad.net/bugs/1941036

[Impact]
AMD request to backport USB4 support patches.

[Fix]
Add some quirks/fixes for AMD USB4 controller.

[Test]
I don't have the hardware, so it requires AMD to validate the backport.

[Where problems could occur]
- The enumeration of switch ports is changed, the effect is unknown.
- The QUIRK_AUTO_CLEAR_INT is only applied to Intel TBT controller. I've
  heard that Asmedia also produces TBT controllers but I've never seen
  one. So the change will affect other vendor's TBT controller, if they
  exist.

So only apply it to Impish, Unstable and OEM-5.13 to limit regression
risk.

It doesn't break Intel Thunderbolt per my limited testing.

Mika Westerberg (3):
  thunderbolt: Split NVM read/write generic functions out from usb4.c
  thunderbolt: Make tb_port_type() take const parameter
  thunderbolt: Read router preferred credit allocation information

Sanjay R Mehta (4):
  thunderbolt: Add vendor specific NHI quirk for auto-clearing interrupt
    status
  thunderbolt: Handle ring interrupt by reading interrupt status
    register
  thunderbolt: Do not read control adapter config space
  thunderbolt: Fix port linking by checking all adapters

 drivers/thunderbolt/nhi.c     |  46 ++++--
 drivers/thunderbolt/nvm.c     |  95 ++++++++++++
 drivers/thunderbolt/switch.c  |  66 +++++++--
 drivers/thunderbolt/tb.h      |  33 +++++
 drivers/thunderbolt/tb_regs.h |   1 +
 drivers/thunderbolt/usb4.c    | 263 ++++++++++++++++++++++------------
 include/linux/thunderbolt.h   |   2 +
 7 files changed, 393 insertions(+), 113 deletions(-)

-- 
2.32.0




More information about the kernel-team mailing list