]> git.baikalelectronics.ru Git - kernel.git/commit
Run pci_apply_final_quirks() sooner.
authorDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 12 Oct 2009 11:51:22 +0000 (12:51 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 12 Oct 2009 13:42:09 +0000 (14:42 +0100)
commit677846a9057cba5b6b53dbcafb70377d1943ce10
tree0a7f166bcaca397981e89e13e68d54440d1214e5
parent56880cc677b09a79dd8679dd323b4e5f5d548b73
Run pci_apply_final_quirks() sooner.

Having this as a device_initcall() means that some real device drivers
can actually initialise _before_ the quirks are run, which is wrong.

We want it to run _before_ device_initcall(), but _after_ fs_initcall(),
since some arch-specific PCI initialisation like pcibios_assign_resources()
is done at fs_initcall().

We could use rootfs_initcall() but I actually want to use that for the
IOMMU initialisation, which has to come after the quirks, but still
before the real devices. So use fs_initcall_sync() instead -- since this
is entirely synchronous, it doesn't hurt that it'll escape the
synchronisation.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/pci/quirks.c