Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294748
b: refs/heads/master
c: 673c975
h: refs/heads/master
v: v3
  • Loading branch information
Bjorn Helgaas committed Feb 24, 2012
1 parent 9d53814 commit e24a832
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 23 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3c13be017abe041e495862d50dbd83093e09cd6a
refs/heads/master: 673c975624895c4db2edff32601d9c6475b2d39e
2 changes: 0 additions & 2 deletions trunk/arch/powerpc/include/asm/ppc-pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ extern void init_pci_config_tokens (void);
extern unsigned long get_phb_buid (struct device_node *);
extern int rtas_setup_phb(struct pci_controller *phb);

extern unsigned long pci_probe_only;

/* ---- EEH internal-use-only related routines ---- */
#ifdef CONFIG_EEH

Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/powerpc/kernel/pci-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ static int global_phb_number; /* Global phb counter */
/* ISA Memory physical address */
resource_size_t isa_mem_base;

/* Default PCI flags is 0 on ppc32, modified at boot on ppc64 */
unsigned int pci_flags = 0;


static struct dma_map_ops *pci_dma_ops = &dma_direct_ops;

Expand Down
5 changes: 0 additions & 5 deletions trunk/arch/powerpc/kernel/pci_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
#include <asm/machdep.h>
#include <asm/ppc-pci.h>

unsigned long pci_probe_only = 0;

/* pci_io_base -- the base address from which io bars are offsets.
* This is the lowest I/O base address (so bar values are always positive),
* and it *must* be the start of ISA space if an ISA bus exists because
Expand All @@ -55,9 +53,6 @@ static int __init pcibios_init(void)
*/
ppc_md.phys_mem_access_prot = pci_phys_mem_access_prot;

if (pci_probe_only)
pci_add_flags(PCI_PROBE_ONLY);

/* On ppc64, we always enable PCI domains and we keep domain 0
* backward compatible in /proc for video cards
*/
Expand Down
10 changes: 7 additions & 3 deletions trunk/arch/powerpc/kernel/rtas_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,16 +276,20 @@ void __init find_and_init_phbs(void)
pci_devs_phb_init();

/*
* pci_probe_only and pci_assign_all_buses can be set via properties
* PCI_PROBE_ONLY and PCI_REASSIGN_ALL_BUS can be set via properties
* in chosen.
*/
if (of_chosen) {
const int *prop;

prop = of_get_property(of_chosen,
"linux,pci-probe-only", NULL);
if (prop)
pci_probe_only = *prop;
if (prop) {
if (*prop)
pci_add_flags(PCI_PROBE_ONLY);
else
pci_clear_flags(PCI_PROBE_ONLY);
}

#ifdef CONFIG_PPC32 /* Will be made generic soon */
prop = of_get_property(of_chosen,
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/powerpc/platforms/iseries/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ void __init iSeries_pcibios_init(void)
/* Install IO hooks */
ppc_pci_io = iseries_pci_io;

pci_probe_only = 1;
pci_add_flags(PCI_PROBE_ONLY);

/* iSeries has no IO space in the common sense, it needs to set
* the IO base to 0
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/powerpc/platforms/maple/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ void __init maple_pci_init(void)
}

/* Tell pci.c to not change any resource allocations. */
pci_probe_only = 1;
pci_add_flags(PCI_PROBE_ONLY);
}

int maple_pci_get_legacy_ide_irq(struct pci_dev *pdev, int channel)
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/powerpc/platforms/pasemi/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ void __init pas_pci_init(void)
pci_devs_phb_init();

/* Use the common resource allocation mechanism */
pci_probe_only = 1;
pci_add_flags(PCI_PROBE_ONLY);
}

void __iomem *pasemi_pci_getcfgaddr(struct pci_dev *dev, int offset)
Expand Down
5 changes: 2 additions & 3 deletions trunk/arch/powerpc/platforms/powernv/pci-ioda.c
Original file line number Diff line number Diff line change
Expand Up @@ -1299,15 +1299,14 @@ void __init pnv_pci_init_ioda1_phb(struct device_node *np)
/* Setup MSI support */
pnv_pci_init_ioda_msis(phb);

/* We set both probe_only and PCI_REASSIGN_ALL_RSRC. This is an
/* We set both PCI_PROBE_ONLY and PCI_REASSIGN_ALL_RSRC. This is an
* odd combination which essentially means that we skip all resource
* fixups and assignments in the generic code, and do it all
* ourselves here
*/
pci_probe_only = 1;
ppc_md.pcibios_fixup_phb = pnv_pci_ioda_fixup_phb;
ppc_md.pcibios_enable_device_hook = pnv_pci_enable_device_hook;
pci_add_flags(PCI_REASSIGN_ALL_RSRC);
pci_add_flags(PCI_PROBE_ONLY | PCI_REASSIGN_ALL_RSRC);

/* Reset IODA tables to a clean state */
rc = opal_pci_reset(phb_id, OPAL_PCI_IODA_TABLE_RESET, OPAL_ASSERT_RESET);
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/powerpc/platforms/powernv/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ void __init pnv_pci_init(void)
{
struct device_node *np;

pci_set_flags(PCI_CAN_SKIP_ISA_ALIGN);
pci_add_flags(PCI_CAN_SKIP_ISA_ALIGN);

/* OPAL absent, try POPAL first then RTAS detection of PHBs */
if (!firmware_has_feature(FW_FEATURE_OPAL)) {
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/powerpc/platforms/pseries/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,8 @@ static void __init pSeries_setup_arch(void)

fwnmi_init();

/* By default, only probe PCI (can be overriden by rtas_pci */
pci_probe_only = 1;
/* By default, only probe PCI (can be overriden by rtas_pci) */
pci_add_flags(PCI_PROBE_ONLY);

/* Find and initialize PCI host bridges */
init_pci_config_tokens();
Expand Down

0 comments on commit e24a832

Please sign in to comment.