linux/drivers/thunderbolt
Mika Westerberg d1b531efcb thunderbolt: Do not call PM runtime functions in tb_retimer_scan()
commit 23257cfc1c upstream.

We cannot call PM runtime functions in tb_retimer_scan() because it will
also be called when retimers are scanned from userspace (happens when
there is no device connected on ChromeOS for instance) and at the same
USB4 port runtime resume hook. This leads to hang because neither can
proceed.

Fix this by runtime resuming USB4 ports in tb_scan_port() instead. This
makes sure the ports are runtime PM active when retimers are added under
it while avoiding the reported hang as well.

Reported-by: Utkarsh Patel <utkarsh.h.patel@intel.com>
Fixes: 1e56c88ade ("thunderbolt: Runtime resume USB4 port when retimers are scanned")
Cc: stable@vger.kernel.org
Acked-by: Yehezkel Bernat <YehezkelShB@gmail.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-01-24 07:24:37 +01:00
..
acpi.c
cap.c
ctl.c
ctl.h
debugfs.c
dma_port.c
dma_port.h
dma_test.c
domain.c thunderbolt: Convert to use sysfs_emit()/sysfs_emit_at() APIs 2022-09-24 09:22:01 +03:00
eeprom.c
icm.c thunderbolt: Changes for v6.1 merge window 2022-09-30 13:44:59 +02:00
Kconfig thunderbolt: Changes for v6.1 merge window 2022-09-30 13:44:59 +02:00
lc.c
Makefile
nhi_ops.c
nhi_regs.h
nhi.c USB/Thunderbolt changes for 6.1-rc1 2022-10-07 16:48:26 -07:00
nhi.h thunderbolt: Changes for v6.1 merge window 2022-09-30 13:44:59 +02:00
nvm.c
path.c
property.c
quirks.c
retimer.c thunderbolt: Do not call PM runtime functions in tb_retimer_scan() 2023-01-24 07:24:37 +01:00
sb_regs.h
switch.c USB/Thunderbolt changes for 6.1-rc1 2022-10-07 16:48:26 -07:00
tb_msgs.h
tb_regs.h thunderbolt: Explicitly enable lane adapter hotplug events at startup 2022-09-26 20:18:25 +03:00
tb.c thunderbolt: Do not call PM runtime functions in tb_retimer_scan() 2023-01-24 07:24:37 +01:00
tb.h USB/Thunderbolt changes for 6.1-rc1 2022-10-07 16:48:26 -07:00
test.c
tmu.c
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 USB/Thunderbolt changes for 6.1-rc1 2022-10-07 16:48:26 -07:00
xdomain.c thunderbolt: Disable XDomain lane 1 only in software connection manager 2023-01-24 07:24:37 +01:00