Commit 23a36002 authored by Jacob Pan's avatar Jacob Pan Committed by Jesse Barnes

PCI: avoid early PCI mmconfig init if pci=noearly is given in cmdline

Early type 1 accesses can cause problems on some platforms, and
pci=noearly is supposed to prevent them from occurring.  However, early
mcfg probing code uses type 1 and  isn't protected by a check for
noearly.  This patch fixes that problem.
Signed-off-by: default avatarJacob Pan <jacob.jun.pan@intel.com>
Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
parent 0e331bf1
...@@ -12,7 +12,8 @@ static __init int pci_arch_init(void) ...@@ -12,7 +12,8 @@ static __init int pci_arch_init(void)
type = pci_direct_probe(); type = pci_direct_probe();
#endif #endif
pci_mmcfg_early_init(); if (!(pci_probe & PCI_PROBE_NOEARLY))
pci_mmcfg_early_init();
#ifdef CONFIG_PCI_OLPC #ifdef CONFIG_PCI_OLPC
if (!pci_olpc_init()) if (!pci_olpc_init())
......
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