summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev/indirect_pci.c
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2007-07-25 00:29:53 -0500
committerKumar Gala <galak@kernel.crashing.org>2007-07-25 00:29:53 -0500
commit7659c038d3d0a635b5aeff04aed523d7b6c1dde8 (patch)
treed75e5abe82a97bb029dac6dec5c77dfdeeb8437e /arch/powerpc/sysdev/indirect_pci.c
parent0de085bb474f64e4fdb2f1ff3268590792648c7b (diff)
downloadblackbird-op-linux-7659c038d3d0a635b5aeff04aed523d7b6c1dde8.tar.gz
blackbird-op-linux-7659c038d3d0a635b5aeff04aed523d7b6c1dde8.zip
[POWERPC] Fix PCI indirect for big-endian cfg_addr
We didn't actually propogate the flag we pass into setup_indirect_pci() to set indirect_type and thus were getting the wrong endianness if PPC_INDIRECT_TYPE_BIG_ENDIAN was set. Also, we need to or in additional flags rather than just doing a direct assignment. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/sysdev/indirect_pci.c')
-rw-r--r--arch/powerpc/sysdev/indirect_pci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/sysdev/indirect_pci.c b/arch/powerpc/sysdev/indirect_pci.c
index a8ac2dfdd3d4..5294560c7b00 100644
--- a/arch/powerpc/sysdev/indirect_pci.c
+++ b/arch/powerpc/sysdev/indirect_pci.c
@@ -160,4 +160,5 @@ setup_indirect_pci(struct pci_controller* hose, u32 cfg_addr, u32 cfg_data, u32
mbase = ioremap(cfg_data & PAGE_MASK, PAGE_SIZE);
hose->cfg_data = mbase + (cfg_data & ~PAGE_MASK);
hose->ops = &indirect_pci_ops;
+ hose->indirect_type = flags;
}
OpenPOWER on IntegriCloud