Skip to content

thunderbolt: Add support for ASMedia NVM firmware image format

Mika Westerberg linux-usb 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v9 Latest6 patches 0 repliesNew

Changes from the previous version from the cover letter

* Shuffled the ordering of the patches a bit
* Add tb_retimer_nvm_read() and tb_switch_nvm_read()
* Add ->write_headers() callback that is used with Thunderbolt 2 routers
* Cover retimers too
* Minor cleanups and tweaks

Patches in v9 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6thunderbolt: Allow NVM upgrade of USB4 host routersdrivers/thunderbolt/tb.c+4 -10 replies
2/6thunderbolt: Extend NVM version fields to 32-bitsdrivers/thunderbolt/retimer.c drivers/thunderbolt/switch.c drivers/thunderbolt/tb.h+6 -60 replies
3/6thunderbolt: Rename and make nvm_read() available for other filesdrivers/thunderbolt/switch.c drivers/thunderbolt/tb.h+28 -180 replies
4/6thunderbolt: Provide tb_retimer_nvm_read() analogous to tb_switch_nvm_read()drivers/thunderbolt/retimer.c drivers/thunderbolt/tb.h+23 -70 replies
5/6thunderbolt: Move vendor specific NVM handling into nvm.cdrivers/thunderbolt/nvm.c drivers/thunderbolt/retimer.c drivers/thunderbolt/switch.c +1 more+410 -1670 replies
6/6thunderbolt: Add support for ASMedia NVM image formatdrivers/thunderbolt/nvm.c+37 -00 replies

Reviews trailers per patch

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

Read the v9 thread

Cover letter [PATCH v9 0/6] thunderbolt: Add support for ASMedia NVM firmware image format

Hi all,

This series adds support for ASMedia NVM images. It is based on the work of Szuying Chen with a couple of changes from me. The first patches move Intel specific NVM validation into nvm.c and adds a vendor table for both routers and retimers that can be extended to support different vendor NVM image formats. Once that is done the ASMedia NVM image format support is added.

The previous version of the patch series can be found here:

https://lore.kernel.org/linux-usb/[email protected]/

Changes from the previous version:

* Shuffled the ordering of the patches a bit
* Add tb_retimer_nvm_read() and tb_switch_nvm_read()
* Add ->write_headers() callback that is used with Thunderbolt 2 routers
* Cover retimers too
* Minor cleanups and tweaks

I have tested this on Intel Thunderbolt 3 and Thunderbolt 4 routers. ASMedia folks, can you try this also on your side and let me know if it works or not?

Mika Westerberg (1):
thunderbolt: Provide tb_retimer_nvm_read() analogous to tb_switch_nvm_read()

Szuying Chen (5):
thunderbolt: Allow NVM upgrade of USB4 host routers
thunderbolt: Extend NVM version fields to 32-bits
thunderbolt: Rename and make nvm_read() available for other files
thunderbolt: Move vendor specific NVM handling into nvm.c
thunderbolt: Add support for ASMedia NVM image format

 drivers/thunderbolt/nvm.c     | 385 +++++++++++++++++++++++++++++++++-
 drivers/thunderbolt/retimer.c | 105 ++++------
 drivers/thunderbolt/switch.c  | 162 +++++---------
 drivers/thunderbolt/tb.c      |   5 +-
 drivers/thunderbolt/tb.h      |  30 ++-
 5 files changed, 498 insertions(+), 189 deletions(-)
Signature · 1 line
2.35.1