]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
thunderbolt: Scan retimers after device router has been enumerated
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 4 Mar 2025 08:53:21 +0000 (10:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 May 2025 05:50:55 +0000 (07:50 +0200)
commitd5ada7bf3dc8b936b222432e590376649e8ae825
treed73bc12fc36b9161972974745a7d359a3d52b1b1
parente59fc484d4247c0774f4b55bd1ee1b2bf9b14fdf
thunderbolt: Scan retimers after device router has been enumerated

[ Upstream commit 75749d2c1d8cef439f8b69fa1f4f36d0fc3193e6 ]

Thomas reported connection issues on AMD system with Pluggable UD-4VPD
dock. After some experiments it looks like the device has some sort of
internal timeout that triggers reconnect. This is completely against the
USB4 spec, as there is no requirement for the host to enumerate the
device right away or even at all.

In Linux case the delay is caused by scanning of retimers on the link so
we can work this around by doing the scanning after the device router
has been enumerated.

Reported-by: Thomas Lynema <lyz27@yahoo.com>
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=219748
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/thunderbolt/tb.c