thunderbolt: Explicitly enable lane adapter hotplug events at startup
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 26 Sep 2022 14:33:50 +0000 (09:33 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 10:34:32 +0000 (12:34 +0200)
commit5cda4a11b4906ddd037b216845e7f9c96ac93772
tree82fbb9c82b3204bb5c1b59fdd222e316a8c69828
parentd9c79fbcbdb6cb10c07c85040eaf615180b26c48
thunderbolt: Explicitly enable lane adapter hotplug events at startup

commit 5d2569cb4a65c373896ec0217febdf88739ed295 upstream.

Software that has run before the USB4 CM in Linux runs may have disabled
hotplug events for a given lane adapter.

Other CMs such as that one distributed with Windows 11 will enable hotplug
events. Do the same thing in the Linux CM which fixes hotplug events on
"AMD Pink Sardine".

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
drivers/thunderbolt/tb.h
drivers/thunderbolt/tb_regs.h
drivers/thunderbolt/usb4.c