Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 60615
b: refs/heads/master
c: 0a3786c
h: refs/heads/master
i:
  60613: 3418a28
  60611: 08a6663
  60607: 7cde813
v: v3
  • Loading branch information
Kumar Gala committed Jun 29, 2007
1 parent b6be4b9 commit 2edbd5c
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 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: 5ab65ecdaffd85753e7ad957622afcd709a39deb
refs/heads/master: 0a3786c5f7575c0739ad94057213b931a9423502
2 changes: 1 addition & 1 deletion trunk/arch/powerpc/platforms/83xx/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ int __init mpc83xx_add_bridge(struct device_node *dev)
" bus 0\n", dev->full_name);
}

pci_assign_all_buses = 1;
hose = pcibios_alloc_controller();
if (!hose)
return -ENOMEM;
Expand All @@ -80,7 +81,6 @@ int __init mpc83xx_add_bridge(struct device_node *dev)
if ((rsrc.start & 0xfffff) == 0x8600) {
setup_indirect_pci(hose, immr + 0x8380, immr + 0x8384);
primary = 0;
hose->bus_offset = hose->first_busno;
}

printk(KERN_INFO "Found MPC83xx PCI host bridge at 0x%016llx. "
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/powerpc/platforms/85xx/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ int __init mpc85xx_add_bridge(struct device_node *dev)
" bus 0\n", dev->full_name);
}

pci_assign_all_buses = 1;
hose = pcibios_alloc_controller();
if (!hose)
return -ENOMEM;
Expand All @@ -71,7 +72,6 @@ int __init mpc85xx_add_bridge(struct device_node *dev)
if ((rsrc.start & 0xfffff) == 0x9000) {
setup_indirect_pci(hose, immr + 0x9000, immr + 0x9004);
primary = 0;
hose->bus_offset = hose->first_busno;
}

printk(KERN_INFO "Found MPC85xx PCI host bridge at 0x%016llx. "
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/powerpc/sysdev/indirect_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ indirect_read_config(struct pci_bus *bus, unsigned int devfn, int offset,
cfg_type = 1;

bus_no = (bus->number == hose->first_busno) ?
hose->self_busno : bus->number - hose->bus_offset;
hose->self_busno : bus->number;

PCI_CFG_OUT(hose->cfg_addr,
(0x80000000 | (bus_no << 16)
Expand Down Expand Up @@ -87,7 +87,7 @@ indirect_write_config(struct pci_bus *bus, unsigned int devfn, int offset,
cfg_type = 1;

bus_no = (bus->number == hose->first_busno) ?
hose->self_busno : bus->number - hose->bus_offset;
hose->self_busno : bus->number;

PCI_CFG_OUT(hose->cfg_addr,
(0x80000000 | (bus_no << 16)
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/powerpc/sysdev/mv64x60_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ static int __init mv64x60_add_bridge(struct device_node *dev)
hose->last_busno = bus_range ? bus_range[1] : 0xff;

setup_indirect_pci(hose, rsrc.start, rsrc.start + 4);
hose->bus_offset = hose->first_busno;
hose->self_busno = hose->first_busno;

printk(KERN_INFO "Found MV64x60 PCI host bridge at 0x%016llx. "
"Firmware bus number: %d->%d\n",
Expand Down
1 change: 1 addition & 0 deletions trunk/include/asm-ppc/pci-bridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ struct pci_controller {
int first_busno;
int last_busno;
int self_busno;
/* bus_offset is only used by ARCH=ppc */
int bus_offset;

void __iomem *io_base_virt;
Expand Down

0 comments on commit 2edbd5c

Please sign in to comment.