diff options
Diffstat (limited to 'arch/powerpc/sysdev/indirect_pci.c')
-rw-r--r-- | arch/powerpc/sysdev/indirect_pci.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/sysdev/indirect_pci.c b/arch/powerpc/sysdev/indirect_pci.c index 3a1612253c..c7e6e859b3 100644 --- a/arch/powerpc/sysdev/indirect_pci.c +++ b/arch/powerpc/sysdev/indirect_pci.c | |||
@@ -103,6 +103,12 @@ indirect_write_config(struct pci_bus *bus, unsigned int devfn, int offset, | |||
103 | (0x80000000 | (bus_no << 16) | 103 | (0x80000000 | (bus_no << 16) |
104 | | (devfn << 8) | reg | cfg_type)); | 104 | | (devfn << 8) | reg | cfg_type)); |
105 | 105 | ||
106 | /* surpress setting of PCI_PRIMARY_BUS */ | ||
107 | if (hose->indirect_type & PPC_INDIRECT_TYPE_SURPRESS_PRIMARY_BUS) | ||
108 | if ((offset == PCI_PRIMARY_BUS) && | ||
109 | (bus->number == hose->first_busno)) | ||
110 | val &= 0xffffff00; | ||
111 | |||
106 | /* | 112 | /* |
107 | * Note: the caller has already checked that offset is | 113 | * Note: the caller has already checked that offset is |
108 | * suitably aligned and that len is 1, 2 or 4. | 114 | * suitably aligned and that len is 1, 2 or 4. |