linux/drivers/thunderbolt
Lukas Wunner e269b500b2 thunderbolt: Use is_pciehp instead of is_hotplug_bridge
[ Upstream commit 5d03847175 ]

The thunderbolt driver sets up device link dependencies from hotplug ports
to the Host Router (aka Native Host Interface, NHI).  When resuming from
system sleep, this allows the Host Router to re-establish tunnels to
attached Thunderbolt devices before the hotplug ports resume.

To identify the hotplug ports, the driver utilizes the is_hotplug_bridge
flag which also encompasses ACPI slots handled by the ACPI hotplug driver.

Thunderbolt hotplug ports are always Hot-Plug Capable PCIe ports, so it is
more apt to identify them with the is_pciehp flag.

Similarly, hotplug ports on older Thunderbolt controllers have broken MSI
support and are quirked to use legacy INTx interrupts instead.  The quirk
identifies them with is_hotplug_bridge, even though all affected ports are
also matched by is_pciehp.  So use is_pciehp here as well.

Signed-off-by: Lukas Wunner <lukas@wunner.de>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-12-07 06:09:19 +09:00
..
acpi.c thunderbolt: Runtime PM activate both ends of the device link 2022-01-27 11:04:36 +01:00
cap.c thunderbolt: cap: Fix kernel-doc formatting issue 2021-01-28 12:33:18 +03:00
ctl.c thunderbolt: Do not double dequeue a configuration request 2025-06-27 11:05:09 +01:00
ctl.h thunderbolt: Decrease control channel timeout for software connection manager 2021-03-18 18:25:30 +03:00
debugfs.c thunderbolt: debugfs: Show all accessible dwords 2021-03-12 13:13:34 +03:00
dma_port.c thunderbolt: Use generic tb_nvm_[read|write]_data() for Thunderbolt 2/3 devices 2021-05-31 14:37:54 +03:00
dma_port.h thunderbolt: Convert rest of the driver files to use SPDX identifier 2018-10-02 15:52:08 -07:00
dma_test.c thunderbolt: dma_test: Use correct value for absent rings when creating paths 2023-06-21 15:59:15 +02:00
domain.c thunderbolt: Fix copy+paste error in match_service_id() 2025-08-28 16:24:26 +02:00
eeprom.c thunderbolt: Fix DROM handling for USB4 DROM 2021-06-15 13:51:07 +03:00
icm.c thunderbolt: Add support for Intel Meteor Lake 2025-01-09 13:28:43 +01:00
Kconfig thunderbolt: Add DMA traffic test driver 2020-11-11 10:20:16 +03:00
lc.c thunderbolt: Add wake from DisplayPort 2021-05-31 14:39:52 +03:00
Makefile thunderbolt: build kunit tests without structleak plugin 2021-10-06 17:53:49 -06:00
nhi.c thunderbolt: Add support for Intel Panther Lake-M/P 2025-01-09 13:28:43 +01:00
nhi.h thunderbolt: Add support for Intel Panther Lake-M/P 2025-01-09 13:28:43 +01:00
nhi_ops.c thunderbolt: Software CM only should set force power in Tiger Lake 2020-09-03 12:06:40 +03:00
nhi_regs.h thunderbolt: Clear registers properly when auto clear isn't in use 2023-05-24 17:36:54 +01:00
nvm.c thunderbolt: Split NVM read/write generic functions out from usb4.c 2021-05-31 14:37:48 +03:00
path.c thunderbolt: Tear down existing tunnels when resuming from hibernate 2022-11-16 09:58:12 +01:00
property.c thunderbolt: Add tb_property_copy_dir() 2021-03-18 18:25:31 +03:00
quirks.c thunderbolt: Add quirk for Intel Goshen Ridge DP credits 2021-06-01 10:48:59 +03:00
retimer.c thunderbolt: Read retimer NVM authentication status prior tb_retimer_set_inbound_sbtx() 2023-08-26 14:23:24 +02:00
sb_regs.h thunderbolt: Add missing UNSET_INBOUND_SBTX for retimer access 2023-03-30 12:47:52 +02:00
switch.c thunderbolt: Fix bit masking in tb_dp_port_set_hops() 2025-08-28 16:23:59 +02:00
tb.c thunderbolt: Use is_pciehp instead of is_hotplug_bridge 2025-12-07 06:09:19 +09:00
tb.h thunderbolt: Avoid notify PM core about runtime PM resume 2024-04-27 17:05:26 +02:00
tb_msgs.h thunderbolt: Add USB4 router operation proxy for firmware connection manager 2020-11-30 14:39:24 +03:00
tb_regs.h thunderbolt: Explicitly enable lane adapter hotplug events at startup 2022-10-26 12:34:32 +02:00
test.c thunderbolt: Use different lane for second DisplayPort tunnel 2022-06-14 18:36:20 +02:00
tmu.c thunderbolt: Add support for Time Management Unit 2019-12-18 15:41:15 +01:00
tunnel.c thunderbolt: Use correct function to calculate maximum USB3 link rate 2023-01-24 07:22:46 +01:00
tunnel.h thunderbolt: Tear down existing tunnels when resuming from hibernate 2022-11-16 09:58:12 +01:00
usb4.c thunderbolt: Avoid notify PM core about runtime PM resume 2024-04-27 17:05:26 +02:00
usb4_port.c thunderbolt: No need to include <linux/acpi.h> in usb4_port.c 2021-06-11 11:42:54 +03:00
xdomain.c thunderbolt: Update port credits after bonding is enabled/disabled 2021-06-01 10:48:59 +03:00