thunderbolt: Serialize PCIe tunnel creation with PCI rescan
commita03e828915c00ed0ea5aa40647c81472cfa7a984
authorMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 18 Jan 2018 17:27:47 +0000 (18 20:27 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 9 Mar 2018 09:54:09 +0000 (9 12:54 +0300)
tree955b85170dd3bff301b2589f4b63bdd66d2db4a1
parentf2a659f7d8d5da803836583aa16df06bdf324252
thunderbolt: Serialize PCIe tunnel creation with PCI rescan

We need to make sure a new PCIe tunnel is not created in a middle of
previous PCI rescan because otherwise the rescan code might find too
much and fail to reconfigure devices properly. This is important when
native PCIe hotplug is used. In BIOS assisted hotplug there should be no
such issue.

Fixes: f67cf491175a ("thunderbolt: Add support for Internal Connection Manager (ICM)")
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: stable@vger.kernel.org
drivers/thunderbolt/switch.c