Skip to content

Commit eafa717

Browse files
westerigregkh
authored andcommitted
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>
1 parent 86da809 commit eafa717

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/thunderbolt/nhi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1191,5 +1191,5 @@ static void __exit nhi_unload(void)
11911191
tb_domain_exit();
11921192
}
11931193

1194-
fs_initcall(nhi_init);
1194+
rootfs_initcall(nhi_init);
11951195
module_exit(nhi_unload);

0 commit comments

Comments
 (0)