]> www.infradead.org Git - users/jedix/linux-maple.git/commit
thunderbolt: Add only on-board retimers when !CONFIG_USB4_DEBUGFS_MARGINING
authorMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 24 Oct 2024 09:26:53 +0000 (12:26 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 29 Oct 2024 05:48:42 +0000 (07:48 +0200)
commitbf791751162ac875a9439426d13f8d4d18151549
tree6c40dbf635618650fdd3a947552ec247b9143cf6
parent81983758430957d9a5cb3333fe324fd70cf63e7e
thunderbolt: Add only on-board retimers when !CONFIG_USB4_DEBUGFS_MARGINING

Normally there is no need to enumerate retimers on the other side of the
cable. This is only needed in special cases where user wants to run
receiver lane margining against the downstream facing port of a retimer.
Furthermore this might confuse the userspace tools such as fwupd because
it cannot read the information it expects from these retimers.

Fix this by changing the retimer enumeration code to add only on-board
retimers when CONFIG_USB4_DEBUGFS_MARGINING is not enabled.

Reported-by: AceLan Kao <acelan.kao@canonical.com>
Tested-by: AceLan Kao <acelan.kao@canonical.com>
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=219420
Cc: stable@vger.kernel.org
Fixes: ff6ab055e070 ("thunderbolt: Add receiver lane margining support for retimers")
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/retimer.c