]> www.infradead.org Git - users/jedix/linux-maple.git/commit
thunderbolt: Add receiver lane margining support for retimers
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 21 Mar 2023 09:40:49 +0000 (11:40 +0200)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 17 Jun 2024 09:47:12 +0000 (12:47 +0300)
commitff6ab055e070d819f51196622e08f8941b6d2a4b
treea25e205a3055875b0a003f1a8b7747aa00866abc
parent0890fc36c70c8d5e80dc128c3a9d7a9122646869
thunderbolt: Add receiver lane margining support for retimers

Retimers support lane margining as well so make this available through
debugfs in the same way as we do for the USB4 ports. When this is
enabled we also expose retimers on the other side of the cable because
typically margining is implemented only on direction towards the cable.
However, for the retimers on the other side of the cable we do not allow
NVM upgrade to avoid confusing the existing userspace (the same retimer
may now appear twice with different name) and is probably not a good
idea anyway.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/Kconfig
drivers/thunderbolt/debugfs.c
drivers/thunderbolt/retimer.c
drivers/thunderbolt/sb_regs.h
drivers/thunderbolt/tb.h
drivers/thunderbolt/usb4.c