]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
thunderbolt: Fix wake configurations after device unplug
authorGil Fine <gil.fine@linux.intel.com>
Fri, 1 Mar 2024 13:22:53 +0000 (15:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 27 Apr 2024 15:07:14 +0000 (17:07 +0200)
commit9eae1facfc061802e045a49ae83ac1f0ff9900a3
tree73d34682bc00332b8ec32db371c76f3a65b332fe
parent38e10c9faa95ef37c927fdb19dbdc97153ce6150
thunderbolt: Fix wake configurations after device unplug

commit c38fa07dc69f0b9e6f43ecab96dc7861a70c827c upstream.

Currently we don't configure correctly the wake events after unplug of device
router. What can happen is that the downstream ports of host router will be
configured to wake on: USB4-wake and wake-on-disconnect, but not on
wake-on-connect. This may cause the later plugged device not to wake the
domain and fail in enumeration. Fix this by clearing downstream port's "USB4
Port is Configured" bit, after unplug of a device router.

Signed-off-by: Gil Fine <gil.fine@linux.intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/thunderbolt/switch.c