linux-stable/drivers/thunderbolt
Mika Westerberg 80ac8d1948 thunderbolt: Mark XDomain as unplugged when router is removed
commit e2006140ad 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:30:13 +02:00
..
acpi.c
cap.c
ctl.c
ctl.h
debugfs.c thunderbolt: debugfs: Fix margin debugfs node creation condition 2024-06-21 14:35:44 +02:00
dma_port.c
dma_port.h
dma_test.c thunderbolt: dma_test: Use correct value for absent rings when creating paths 2023-06-21 16:00:56 +02:00
domain.c
eeprom.c
icm.c thunderbolt: Workaround an IOMMU fault on certain systems with Intel Maple Ridge 2023-10-19 23:08:56 +02:00
Kconfig
lc.c
Makefile
nhi_ops.c
nhi_regs.h thunderbolt: Clear registers properly when auto clear isn't in use 2023-05-24 17:32:51 +01:00
nhi.c thunderbolt: Add Intel Barlow Ridge PCI ID 2023-08-23 17:52:24 +02:00
nhi.h thunderbolt: Limit Intel Barlow Ridge USB3 bandwidth 2023-08-23 17:52:24 +02:00
nvm.c
path.c
property.c
quirks.c thunderbolt: Add debug log for link controller power quirk 2024-04-27 17:07:10 +02:00
retimer.c thunderbolt: Read retimer NVM authentication status prior tb_retimer_set_inbound_sbtx() 2023-08-23 17:52:24 +02:00
sb_regs.h thunderbolt: Add missing UNSET_INBOUND_SBTX for retimer access 2023-03-30 12:49:15 +02:00
switch.c thunderbolt: Mark XDomain as unplugged when router is removed 2024-08-29 17:30:13 +02:00
tb_msgs.h
tb_regs.h
tb.c thunderbolt: Avoid notify PM core about runtime PM resume 2024-04-27 17:07:14 +02:00
tb.h thunderbolt: Avoid notify PM core about runtime PM resume 2024-04-27 17:07:14 +02:00
test.c
tmu.c thunderbolt: Fix a backport error for display flickering issue 2023-09-02 09:16:20 +02:00
tunnel.c thunderbolt: Use correct function to calculate maximum USB3 link rate 2023-01-24 07:24:37 +01:00
tunnel.h
usb4_port.c
usb4.c thunderbolt: Avoid notify PM core about runtime PM resume 2024-04-27 17:07:14 +02:00
xdomain.c thunderbolt: Restart XDomain discovery handshake after failure 2023-10-19 23:08:56 +02:00