Let subordinate transparent bridges be transparent.
PATCH 1/3 Let subordinate transparent bridges be transparent.
From: York Sun <[email protected]>
In pcibios_fixup_bus(), bridges that are subordinate to transparent bridges were still relocating their IORESOURCE_IO start and end values.
Fix this by preventing the transparent bridge from relocating the start and end values, thus allowing the subordinate non-transparent bridge full molestation rights.
Signed-off-by York Sun <[email protected]>
Signed-off-by Andy Fleming <[email protected]>
Signed-off-by Jon Loeliger <[email protected]>
--- arch/powerpc/kernel/pci_32.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
arch/powerpc/kernel/pci_32.c +3 -1
@@ -1372,7 +1372,9 @@ void __init pcibios_fixup_bus(struct pci_bus *bus)continue ;if (!res->flags)continue ; -if (io_offset && (res->flags &IORESOURCE_IO )) { +if (!bus->self->transparent + && io_offset + && (res->flags &IORESOURCE_IO )) { res->start += io_offset; res->end += io_offset; } else if (hose->pci_mem_offset
Quoted 6 lines · Jon Loeliger
From: York Sun <[email protected]>
In
pcibios_fixup_bus(), bridges that are subordinate to transparent bridges were still relocating theirIORESOURCE_IOstart and end values.
Quoted 8 lines
Fix this by preventing the transparent bridge from relocating the start and end values, thus allowing the subordinate non-transparent bridge full molestation rights.
Signed-off-by York Sun <[email protected]>Signed-off-by Andy Fleming <[email protected]>Signed-off-by Jon Loeliger <[email protected]>---
Acked-by Roy Zang <[email protected]>