Let subordinate transparent bridges be transparent.
PATCH v2 6/9 Let subordinate transparent bridges be transparent.
In pcibios_fixup_bus(), bridges that are subordinate to transparent bridges were still relocating their IORESOURCE_IO and IO_RESOURCE_MEM 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.
---
This is the variant that was suggested by Ben H.
arch/powerpc/kernel/pci_32.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/powerpc/kernel/pci_32.c +1 -1
@@ -1370,7 +1370,7 @@ void __init pcibios_fixup_bus(struct pci_bus *bus)for (i =0 ; i <4 ; ++i) {if ((res = bus->resource[i]) ==NULL )continue ; -if (!res->flags) +if (!res->flags || bus->self->transparent)continue ;if (io_offset && (res->flags &IORESOURCE_IO )) { res->start += io_offset;
Signature · 1 line
1.5.0.3
Quoted 11 lines · Jon Loeliger
In
pcibios_fixup_bus(), bridges that are subordinate to transparent bridges were still relocating theirIORESOURCE_IOandIO_RESOURCE_MEMstart 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]>
Quoted 20 lines
---
This is the variant that was suggested by Ben H.
arch/powerpc/kernel/pci_32.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)arch/powerpc/kernel/pci_32.c +1
-1@@ -1370,7 +1370,7 @@ void __init pcibios_fixup_bus(struct pci_bus *bus)for (i =0 ; i <4 ; ++i) {if ((res = bus->resource[i]) ==NULL )continue ; -if (!res->flags) +if (!res->flags || bus->self->transparent)continue ;if (io_offset && (res->flags &IORESOURCE_IO )) { res->start += io_offset;