thunderbolt: Explicitly reset plug events delay back to USB4 spec value
authorMario Limonciello <mario.limonciello@amd.com>
Wed, 21 Sep 2022 14:54:32 +0000 (09:54 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Oct 2022 08:39:36 +0000 (10:39 +0200)
commit81e759d71a6bff49a709b9c950887b8dda1541c6
treead1e778d11ebf28cd4e08ebdddea3c17fdfe9779
parent85a70a2599166ed264516ccb466e6b499ef0eb43
thunderbolt: Explicitly reset plug events delay back to USB4 spec value

commit 31f87f705b3c1635345d8e8a493697099b43e508 upstream.

If any software has interacted with the USB4 registers before the Linux
USB4 CM runs, it may have modified the plug events delay. It has been
observed that if this value too large, it's possible that hotplugged
devices will negotiate a fallback mode instead in Linux.

To prevent this, explicitly align the plug events delay with the USB4
spec value of 10ms.

Cc: stable@vger.kernel.org
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/thunderbolt/switch.c