thunderbolt: Add retimer NVM upgrade support
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | thunderbolt: Add Intel USB-IF ID to the NVM upgrade supported listdrivers/ | +2 | 0 replies | |
| 2/6 | thunderbolt: Split common NVM functionality into a separate filedrivers/ drivers/ drivers/ +2 more | +220 | 0 replies | |
| 3/6 | thunderbolt: Generalize usb4_switch_do_[read|write]_data()drivers/ | +21 | 0 replies | |
| 4/6 | thunderbolt: Retry USB4 block read operationdrivers/ | +2 | 0 replies | |
| 5/6 | thunderbolt: Implement USB4 port sideband operations for retimer accessdrivers/ drivers/ drivers/ +1 more | +516 | 0 replies | |
| 6/6 | thunderbolt: Add support for on-board retimersDocumentation/ Documentation/ drivers/ +5 more | +578 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/6] thunderbolt: Add retimer NVM upgrade support
Hi all,
USB4 added standard means for accessing retimers on the link. This access is done through the side-band channel (two side-band wires in Type-C cable). The retimer specification is part of USB4 spec and can be downloaded here:
https://www.usb.org/sites/default/files/USB4%20Specification_5.zip
On-board retimers are represented as devices and added under the router they belong to with names like <device>:<port>.<index>. We re-use some of the current NVM upgrade code for routers for retimers as well. Also we only expose these when software connection manager is used. It is not clear if firmware connection manager is going to support this (and what kind of messaging it needs).
The user-space interface is the same we have for routers so that should allow code re-use for tools such as fwupd.
Currently only Intel NVM format is supported but this will be relaxed once we learn format of other vendors.
This series applies on top of the tunneling improvements series here:
https://lore.kernel.org/linux-usb/[email protected]/
Kranthi Kuntala (1):
thunderbolt: Add support for on-board retimers
Mika Westerberg (4):
thunderbolt: Add Intel USB-IF ID to the NVM upgrade supported list
thunderbolt: Split common NVM functionality into a separate file
thunderbolt: Generalize usb4_switch_do_[read|write]_data()
thunderbolt: Retry USB4 block read operation
Rajmohan Mani (1):
thunderbolt: Implement USB4 port sideband operations for retimer access
.../ABI/testing/sysfs-bus-thunderbolt | 33 ++ Documentation/admin-guide/thunderbolt.rst | 11 +- drivers/thunderbolt/Makefile | 1 + drivers/thunderbolt/domain.c | 2 +- drivers/thunderbolt/nvm.c | 169 ++++++ drivers/thunderbolt/retimer.c | 485 +++++++++++++++++ drivers/thunderbolt/sb_regs.h | 33 ++ drivers/thunderbolt/switch.c | 122 +---- drivers/thunderbolt/tb.c | 10 + drivers/thunderbolt/tb.h | 85 ++- drivers/thunderbolt/tb_regs.h | 10 + drivers/thunderbolt/usb4.c | 505 +++++++++++++++++- 12 files changed, 1338 insertions(+), 128 deletions(-) create mode 100644 drivers/thunderbolt/nvm.c create mode 100644 drivers/thunderbolt/retimer.c create mode 100644 drivers/thunderbolt/sb_regs.h
Signature · 1 line
2.27.0.rc2