thunderbolt: Initialize after IOMMUs
authorMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 24 Sep 2018 10:20:45 +0000 (13:20 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Oct 2018 17:51:16 +0000 (10:51 -0700)
commiteafa717bc145963c944bb0a64d16add683861b35
tree171eb90974675c96882f8c2c8eca93339a01157f
parent86da809dda64a63fc27e05a215475325c3aaae92
thunderbolt: Initialize after IOMMUs

If IOMMU is enabled and Thunderbolt driver is built into the kernel
image, it will be probed before IOMMUs are attached to the PCI bus.
Because of this DMA mappings the driver does will not go through IOMMU
and start failing right after IOMMUs are enabled.

For this reason move the Thunderbolt driver initialization happen at
rootfs level.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/thunderbolt/nhi.c