2007-05-21 19:50:04

by Chris Wright

[permalink] [raw]
Subject: [patch 58/69] SPARC64: Be more resiliant with PCI I/O space regs.

-stable review patch. If anyone has any objections, please let us know.
---------------------

From: David Miller <[email protected]>

If we miss on the ranges, just toss the translation up to the parent
instead of failing.

Signed-off-by: David S. Miller <[email protected]>
Signed-off-by: Chris Wright <[email protected]>

---
arch/sparc64/kernel/of_device.c | 7 +++++++
1 file changed, 7 insertions(+)

--- linux-2.6.21.1.orig/arch/sparc64/kernel/of_device.c
+++ linux-2.6.21.1/arch/sparc64/kernel/of_device.c
@@ -508,6 +508,13 @@ static int __init build_one_resource(str
return 0;
}

+ /* When we miss an I/O space match on PCI, just pass it up
+ * to the next PCI bridge and/or controller.
+ */
+ if (!strcmp(bus->name, "pci") &&
+ (addr[0] & 0x03000000) == 0x01000000)
+ return 0;
+
return 1;
}


--