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)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 22 Sep 2022 11:32:16 +0000 (14:32 +0300)
commit31f87f705b3c1635345d8e8a493697099b43e508
tree41b6ac9f4294fba41435ac2694980393265eb58b
parent521a547ced6477c54b4b0cc206000406c221b4d6
thunderbolt: Explicitly reset plug events delay back to USB4 spec value

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>
drivers/thunderbolt/switch.c