]> 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:47:03 +0000 (07:47 +0200)
commitbc49c5103eb74c7e0b0dc6bcc8a4b4214260ff3c
tree8a0940c2a787b0f3bbf140e5a09255da6ceabcb8
parent7e8f1dbf9bbc6c33e09634b8e360597d99adb607
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