twx-linux/drivers/thunderbolt
Mika Westerberg 18b3ad2a3c thunderbolt: Mark XDomain as unplugged when router is removed
commit e2006140ad2e01a02ed0aff49cc2ae3ceeb11f8d upstream.

I noticed that when we do discrete host router NVM upgrade and it gets
hot-removed from the PCIe side as a result of NVM firmware authentication,
if there is another host connected with enabled paths we hang in tearing
them down. This is due to fact that the Thunderbolt networking driver
also tries to cleanup the paths and ends up blocking in
tb_disconnect_xdomain_paths() waiting for the domain lock.

However, at this point we already cleaned the paths in tb_stop() so
there is really no need for tb_disconnect_xdomain_paths() to do that
anymore. Furthermore it already checks if the XDomain is unplugged and
bails out early so take advantage of that and mark the XDomain as
unplugged when we remove the parent router.

Cc: stable@vger.kernel.org
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-08-29 17:33:12 +02:00
..
acpi.c
cap.c
clx.c
ctl.c
ctl.h
debugfs.c thunderbolt: debugfs: Fix margin debugfs node creation condition 2024-06-21 14:38:25 +02:00
dma_port.c
dma_port.h
dma_test.c
domain.c thunderbolt: Reset topology created by the boot firmware 2024-04-27 17:11:35 +02:00
eeprom.c
icm.c thunderbolt: Reset topology created by the boot firmware 2024-04-27 17:11:35 +02:00
Kconfig
lc.c thunderbolt: Introduce tb_port_reset() 2024-04-27 17:11:35 +02:00
Makefile
nhi_ops.c
nhi_regs.h
nhi.c thunderbolt: Reset topology created by the boot firmware 2024-04-27 17:11:35 +02:00
nhi.h
nvm.c
path.c thunderbolt: Introduce tb_path_deactivate_hop() 2024-04-27 17:11:35 +02:00
property.c
quirks.c
retimer.c
sb_regs.h
switch.c thunderbolt: Mark XDomain as unplugged when router is removed 2024-08-29 17:33:12 +02:00
tb_msgs.h
tb_regs.h thunderbolt: Make tb_switch_reset() support Thunderbolt 2, 3 and USB4 routers 2024-04-27 17:11:35 +02:00
tb.c thunderbolt: Reset only non-USB4 host routers in resume 2024-04-27 17:11:44 +02:00
tb.h thunderbolt: Avoid notify PM core about runtime PM resume 2024-04-27 17:11:38 +02:00
test.c
tmu.c
tunnel.c
tunnel.h
usb4_port.c
usb4.c thunderbolt: Avoid notify PM core about runtime PM resume 2024-04-27 17:11:38 +02:00
xdomain.c