]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix CHRP PCI config access for indirect_pci
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 13 Oct 2008 20:49:47 +0000 (20:49 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 14 Oct 2008 23:13:30 +0000 (10:13 +1100)
commite945ab5fa06533b588c8cda13465d928b16639f2
tree7472105f739a0af4e10a0848e7476ad08b361c69
parentcde496bc4354e268e0fee722e42c1a00425806a3
powerpc: Fix CHRP PCI config access for indirect_pci

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 <benh@kernel.crashing.org>
arch/powerpc/platforms/chrp/pci.c