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)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 26 Sep 2022 17:18:25 +0000 (20:18 +0300)
commit5d2569cb4a65c373896ec0217febdf88739ed295
treee9ee7919c9fca8557180776998597d957f796ae0
parent8d9dcfff7b1c6b5c4264d91b193336c6f6df9b53
thunderbolt: Explicitly enable lane adapter hotplug events at startup

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