diff options
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r-- | arch/powerpc/platforms/maple/pci.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/pasemi/pci.c | 3 | ||||
-rw-r--r-- | arch/powerpc/platforms/powermac/pci.c | 3 | ||||
-rw-r--r-- | arch/powerpc/platforms/powernv/pci-ioda.c | 5 | ||||
-rw-r--r-- | arch/powerpc/platforms/powernv/pci.c | 5 | ||||
-rw-r--r-- | arch/powerpc/platforms/pseries/pci_dlpar.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/pseries/setup.c | 3 | ||||
-rw-r--r-- | arch/powerpc/platforms/wsp/wsp_pci.c | 1 |
8 files changed, 8 insertions, 16 deletions
diff --git a/arch/powerpc/platforms/maple/pci.c b/arch/powerpc/platforms/maple/pci.c index 401e3f3f74c8..465ee8f5c086 100644 --- a/arch/powerpc/platforms/maple/pci.c +++ b/arch/powerpc/platforms/maple/pci.c | |||
@@ -620,7 +620,7 @@ void __init maple_pci_init(void) | |||
620 | } | 620 | } |
621 | 621 | ||
622 | /* Tell pci.c to not change any resource allocations. */ | 622 | /* Tell pci.c to not change any resource allocations. */ |
623 | pci_probe_only = 1; | 623 | pci_add_flags(PCI_PROBE_ONLY); |
624 | } | 624 | } |
625 | 625 | ||
626 | int maple_pci_get_legacy_ide_irq(struct pci_dev *pdev, int channel) | 626 | int maple_pci_get_legacy_ide_irq(struct pci_dev *pdev, int channel) |
diff --git a/arch/powerpc/platforms/pasemi/pci.c b/arch/powerpc/platforms/pasemi/pci.c index b6a0ec45c695..aa862713258c 100644 --- a/arch/powerpc/platforms/pasemi/pci.c +++ b/arch/powerpc/platforms/pasemi/pci.c | |||
@@ -229,9 +229,6 @@ void __init pas_pci_init(void) | |||
229 | 229 | ||
230 | /* Setup the linkage between OF nodes and PHBs */ | 230 | /* Setup the linkage between OF nodes and PHBs */ |
231 | pci_devs_phb_init(); | 231 | pci_devs_phb_init(); |
232 | |||
233 | /* Use the common resource allocation mechanism */ | ||
234 | pci_probe_only = 1; | ||
235 | } | 232 | } |
236 | 233 | ||
237 | void __iomem *pasemi_pci_getcfgaddr(struct pci_dev *dev, int offset) | 234 | void __iomem *pasemi_pci_getcfgaddr(struct pci_dev *dev, int offset) |
diff --git a/arch/powerpc/platforms/powermac/pci.c b/arch/powerpc/platforms/powermac/pci.c index 31a7d3a7ce25..43bbe1bda939 100644 --- a/arch/powerpc/platforms/powermac/pci.c +++ b/arch/powerpc/platforms/powermac/pci.c | |||
@@ -1059,9 +1059,6 @@ void __init pmac_pci_init(void) | |||
1059 | } | 1059 | } |
1060 | /* pmac_check_ht_link(); */ | 1060 | /* pmac_check_ht_link(); */ |
1061 | 1061 | ||
1062 | /* We can allocate missing resources if any */ | ||
1063 | pci_probe_only = 0; | ||
1064 | |||
1065 | #else /* CONFIG_PPC64 */ | 1062 | #else /* CONFIG_PPC64 */ |
1066 | init_p2pbridge(); | 1063 | init_p2pbridge(); |
1067 | init_second_ohare(); | 1064 | init_second_ohare(); |
diff --git a/arch/powerpc/platforms/powernv/pci-ioda.c b/arch/powerpc/platforms/powernv/pci-ioda.c index 5e155dfc4320..fbdd74dac3ac 100644 --- a/arch/powerpc/platforms/powernv/pci-ioda.c +++ b/arch/powerpc/platforms/powernv/pci-ioda.c | |||
@@ -1299,15 +1299,14 @@ void __init pnv_pci_init_ioda1_phb(struct device_node *np) | |||
1299 | /* Setup MSI support */ | 1299 | /* Setup MSI support */ |
1300 | pnv_pci_init_ioda_msis(phb); | 1300 | pnv_pci_init_ioda_msis(phb); |
1301 | 1301 | ||
1302 | /* We set both probe_only and PCI_REASSIGN_ALL_RSRC. This is an | 1302 | /* We set both PCI_PROBE_ONLY and PCI_REASSIGN_ALL_RSRC. This is an |
1303 | * odd combination which essentially means that we skip all resource | 1303 | * odd combination which essentially means that we skip all resource |
1304 | * fixups and assignments in the generic code, and do it all | 1304 | * fixups and assignments in the generic code, and do it all |
1305 | * ourselves here | 1305 | * ourselves here |
1306 | */ | 1306 | */ |
1307 | pci_probe_only = 1; | ||
1308 | ppc_md.pcibios_fixup_phb = pnv_pci_ioda_fixup_phb; | 1307 | ppc_md.pcibios_fixup_phb = pnv_pci_ioda_fixup_phb; |
1309 | ppc_md.pcibios_enable_device_hook = pnv_pci_enable_device_hook; | 1308 | ppc_md.pcibios_enable_device_hook = pnv_pci_enable_device_hook; |
1310 | pci_add_flags(PCI_REASSIGN_ALL_RSRC); | 1309 | pci_add_flags(PCI_PROBE_ONLY | PCI_REASSIGN_ALL_RSRC); |
1311 | 1310 | ||
1312 | /* Reset IODA tables to a clean state */ | 1311 | /* Reset IODA tables to a clean state */ |
1313 | rc = opal_pci_reset(phb_id, OPAL_PCI_IODA_TABLE_RESET, OPAL_ASSERT_RESET); | 1312 | rc = opal_pci_reset(phb_id, OPAL_PCI_IODA_TABLE_RESET, OPAL_ASSERT_RESET); |
diff --git a/arch/powerpc/platforms/powernv/pci.c b/arch/powerpc/platforms/powernv/pci.c index 214478d781ae..be3cfc5ceabb 100644 --- a/arch/powerpc/platforms/powernv/pci.c +++ b/arch/powerpc/platforms/powernv/pci.c | |||
@@ -562,10 +562,7 @@ void __init pnv_pci_init(void) | |||
562 | { | 562 | { |
563 | struct device_node *np; | 563 | struct device_node *np; |
564 | 564 | ||
565 | pci_set_flags(PCI_CAN_SKIP_ISA_ALIGN); | 565 | pci_add_flags(PCI_CAN_SKIP_ISA_ALIGN); |
566 | |||
567 | /* We do not want to just probe */ | ||
568 | pci_probe_only = 0; | ||
569 | 566 | ||
570 | /* OPAL absent, try POPAL first then RTAS detection of PHBs */ | 567 | /* OPAL absent, try POPAL first then RTAS detection of PHBs */ |
571 | if (!firmware_has_feature(FW_FEATURE_OPAL)) { | 568 | if (!firmware_has_feature(FW_FEATURE_OPAL)) { |
diff --git a/arch/powerpc/platforms/pseries/pci_dlpar.c b/arch/powerpc/platforms/pseries/pci_dlpar.c index fbb21fc3080b..8b7bafa489c2 100644 --- a/arch/powerpc/platforms/pseries/pci_dlpar.c +++ b/arch/powerpc/platforms/pseries/pci_dlpar.c | |||
@@ -84,7 +84,7 @@ void pcibios_remove_pci_devices(struct pci_bus *bus) | |||
84 | list_for_each_entry_safe(dev, tmp, &bus->devices, bus_list) { | 84 | list_for_each_entry_safe(dev, tmp, &bus->devices, bus_list) { |
85 | pr_debug(" * Removing %s...\n", pci_name(dev)); | 85 | pr_debug(" * Removing %s...\n", pci_name(dev)); |
86 | eeh_remove_bus_device(dev); | 86 | eeh_remove_bus_device(dev); |
87 | pci_remove_bus_device(dev); | 87 | pci_stop_and_remove_bus_device(dev); |
88 | } | 88 | } |
89 | } | 89 | } |
90 | EXPORT_SYMBOL_GPL(pcibios_remove_pci_devices); | 90 | EXPORT_SYMBOL_GPL(pcibios_remove_pci_devices); |
diff --git a/arch/powerpc/platforms/pseries/setup.c b/arch/powerpc/platforms/pseries/setup.c index 8f137af616af..51ecac920dd8 100644 --- a/arch/powerpc/platforms/pseries/setup.c +++ b/arch/powerpc/platforms/pseries/setup.c | |||
@@ -383,6 +383,9 @@ static void __init pSeries_setup_arch(void) | |||
383 | 383 | ||
384 | fwnmi_init(); | 384 | fwnmi_init(); |
385 | 385 | ||
386 | /* By default, only probe PCI (can be overriden by rtas_pci) */ | ||
387 | pci_add_flags(PCI_PROBE_ONLY); | ||
388 | |||
386 | /* Find and initialize PCI host bridges */ | 389 | /* Find and initialize PCI host bridges */ |
387 | init_pci_config_tokens(); | 390 | init_pci_config_tokens(); |
388 | eeh_pseries_init(); | 391 | eeh_pseries_init(); |
diff --git a/arch/powerpc/platforms/wsp/wsp_pci.c b/arch/powerpc/platforms/wsp/wsp_pci.c index d24b3acf858e..763014cd1e62 100644 --- a/arch/powerpc/platforms/wsp/wsp_pci.c +++ b/arch/powerpc/platforms/wsp/wsp_pci.c | |||
@@ -682,7 +682,6 @@ static int __init wsp_setup_one_phb(struct device_node *np) | |||
682 | /* XXX Force re-assigning of everything for now */ | 682 | /* XXX Force re-assigning of everything for now */ |
683 | pci_add_flags(PCI_REASSIGN_ALL_BUS | PCI_REASSIGN_ALL_RSRC | | 683 | pci_add_flags(PCI_REASSIGN_ALL_BUS | PCI_REASSIGN_ALL_RSRC | |
684 | PCI_ENABLE_PROC_DOMAINS); | 684 | PCI_ENABLE_PROC_DOMAINS); |
685 | pci_probe_only = 0; | ||
686 | 685 | ||
687 | /* Calculate how the TCE space is divided */ | 686 | /* Calculate how the TCE space is divided */ |
688 | phb->dma32_base = 0; | 687 | phb->dma32_base = 0; |