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)
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

index 88cff05a18085d7751452960a53fda140044765e..5cd6bdfa068f9bc91fe2e83bedcd4e81160230c4 100644 (file)
@@ -1191,5 +1191,5 @@ static void __exit nhi_unload(void)
        tb_domain_exit();
 }
 
-fs_initcall(nhi_init);
+rootfs_initcall(nhi_init);
 module_exit(nhi_unload);