Commit eafa717b authored by Mika Westerberg's avatar Mika Westerberg Committed by Greg Kroah-Hartman

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: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 86da809d
...@@ -1191,5 +1191,5 @@ static void __exit nhi_unload(void) ...@@ -1191,5 +1191,5 @@ static void __exit nhi_unload(void)
tb_domain_exit(); tb_domain_exit();
} }
fs_initcall(nhi_init); rootfs_initcall(nhi_init);
module_exit(nhi_unload); module_exit(nhi_unload);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment