Skip to content

Commit

Permalink
powerpc: Fix CHRP PCI config access for indirect_pci
Browse files Browse the repository at this point in the history
Recently, indirect_pci was changed to test if the bus number requested
is the one hanging straight off the PHB, then it substitutes the bus
number with another one contained in a new "self_busno" field of the
pci_controller structure.

However, this breaks CHRP which didn't initialize this new field, and
which relies on having the right bus number passed to the hardware.

This fixes it by initializing this variable properly for all CHRP bridges

Signed-off-by: Benjamin Herrenschmidt <[email protected]>
  • Loading branch information
ozbenh committed Oct 14, 2008
1 parent 22007a1 commit ee673ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/platforms/chrp/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ chrp_find_bridges(void)
dev->full_name);
continue;
}
hose->first_busno = bus_range[0];
hose->first_busno = hose->self_busno = bus_range[0];
hose->last_busno = bus_range[1];

model = of_get_property(dev, "model", NULL);
Expand Down

0 comments on commit ee673ea

Please sign in to comment.