Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 60610
b: refs/heads/master
c: 0e302a7
h: refs/heads/master
v: v3
  • Loading branch information
Kumar Gala committed Jun 29, 2007
1 parent a55f5d0 commit f557785
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 5ab9c4524d7edd6ae3711bdfd03e4a0deb17fc6e
refs/heads/master: 0e302a704420afe40808fbd4ba149624c4350f31
9 changes: 4 additions & 5 deletions trunk/arch/powerpc/platforms/52xx/mpc52xx_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,13 @@ mpc52xx_pci_read_config(struct pci_bus *bus, unsigned int devfn,

out_be32(hose->cfg_addr,
(1 << 31) |
((bus->number - hose->bus_offset) << 16) |
(bus->number << 16) |
(devfn << 8) |
(offset & 0xfc));
mb();

#if defined(CONFIG_PPC_MPC5200_BUGFIX)
if (bus->number != hose->bus_offset) {
if (bus->number) {
/* workaround for the bug 435 of the MPC5200 (L25R);
* Don't do 32 bits config access during type-1 cycles */
switch (len) {
Expand Down Expand Up @@ -174,13 +174,13 @@ mpc52xx_pci_write_config(struct pci_bus *bus, unsigned int devfn,

out_be32(hose->cfg_addr,
(1 << 31) |
((bus->number - hose->bus_offset) << 16) |
(bus->number << 16) |
(devfn << 8) |
(offset & 0xfc));
mb();

#if defined(CONFIG_PPC_MPC5200_BUGFIX)
if (bus->number != hose->bus_offset) {
if (bus->number) {
/* workaround for the bug 435 of the MPC5200 (L25R);
* Don't do 32 bits config access during type-1 cycles */
switch (len) {
Expand Down Expand Up @@ -394,7 +394,6 @@ mpc52xx_add_bridge(struct device_node *node)
hose->first_busno = bus_range ? bus_range[0] : 0;
hose->last_busno = bus_range ? bus_range[1] : 0xff;

hose->bus_offset = 0;
hose->ops = &mpc52xx_pci_ops;

pci_regs = ioremap(rsrc.start, rsrc.end - rsrc.start + 1);
Expand Down

0 comments on commit f557785

Please sign in to comment.