Skip to content

Commit d0f1e0c

Browse files
committed
thunderbolt: Add support for receiver lane margining
USB4 spec defines standard set of registers to be used for receiver lane margining. This is useful for I/O interface quality and electrical robustness validation during manufacturing. Expose receiver lane margining through new debugfs directory "margining" that is added under each connected USB4 port. Users can then run the margining by writing to the exposed attributes under that directory. Signed-off-by: Mika Westerberg <[email protected]>
1 parent b12d295 commit d0f1e0c

File tree

6 files changed

+1043
-0
lines changed

6 files changed

+1043
-0
lines changed

drivers/thunderbolt/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@ config USB4_DEBUGFS_WRITE
2727
Only enable this if you know what you are doing! Never enable
2828
this for production systems or distro kernels.
2929

30+
config USB4_DEBUGFS_MARGINING
31+
bool "Expose receiver lane margining operations under USB4 ports (DANGEROUS)"
32+
depends on DEBUG_FS
33+
depends on USB4_DEBUGFS_WRITE
34+
help
35+
Enables hardware and software based receiver lane margining support
36+
under each USB4 port. Used for electrical quality and robustness
37+
validation during manufacturing. Should not be enabled by distro
38+
kernels.
39+
3040
config USB4_KUNIT_TEST
3141
bool "KUnit tests" if !KUNIT_ALL_TESTS
3242
depends on (USB4=m || KUNIT=y)

0 commit comments

Comments
 (0)