PCI / thunderbolt: Switch to use device links instead of PCI quirk
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 19 May 2020 10:55:18 +0000 (13:55 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 3 Sep 2020 09:06:42 +0000 (12:06 +0300)
commit2b9941e089ac9cb04976c5fe7aa65378d64fc0fe
tree6eeade96121a3ae12a0ec19a9d0612aaf84298dd
parentb2911a593a705e54adde6d06d4657c1ff2f16583
PCI / thunderbolt: Switch to use device links instead of PCI quirk

On older Apple systems there is currently a PCI quirk in place to block
resume of tunneled PCIe ports until NHI (Thunderbolt controller) is
resumed. This makes sure the PCIe tunnels are re-established before PCI
core notices it.

With device links the same thing can be done without quirks. The driver
core will make sure the supplier (NHI) is resumed before consumers (PCIe
downstream ports).

For this reason switch the Thunderbolt driver to use device links and
remove the PCI quirk.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/quirks.c
drivers/thunderbolt/nhi.c