Jelajahi Sumber

[POWERPC] 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.

Signed-off-by: York Sun <yorksun@freescale.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: Jon Loeliger <jdl@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
York Sun 18 tahun lalu
induk
melakukan
6d8ff10c3a
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      arch/powerpc/kernel/pci_32.c

+ 1 - 1
arch/powerpc/kernel/pci_32.c

@@ -1370,7 +1370,7 @@ void __init pcibios_fixup_bus(struct pci_bus *bus)
 		for (i = 0; i < 4; ++i) {
 		for (i = 0; i < 4; ++i) {
 			if ((res = bus->resource[i]) == NULL)
 			if ((res = bus->resource[i]) == NULL)
 				continue;
 				continue;
-			if (!res->flags)
+			if (!res->flags || bus->self->transparent)
 				continue;
 				continue;
 			if (io_offset && (res->flags & IORESOURCE_IO)) {
 			if (io_offset && (res->flags & IORESOURCE_IO)) {
 				res->start += io_offset;
 				res->start += io_offset;