Skip to contentSkip to conversation

Let subordinate transparent bridges be transparent.

PATCH In review Jon Loeliger 2 participants 2 messages May 29, 2007 – May 31, 2007 PowerPC

lore
Share & tools
lore
#0 lore raw

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.

---
 arch/powerpc/kernel/pci_32.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
arch/powerpc/kernel/pci_32.c +3 -1
index e66064b..102264c 100644
@@ -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
Acked-by on v1 1/3
#1 lore raw
Quoted 6 lines · Jon Loeliger

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.

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.

---