projects
/
wrapfs-5.3.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8492a8b
)
[PATCH] SPARC64: Be more resiliant with PCI I/O space regs.
author
David Miller
<davem@davemloft.net>
Tue, 15 May 2007 08:46:19 +0000
(
01:46
-0700)
committer
Chris Wright
<chrisw@sous-sol.org>
Wed, 23 May 2007 21:32:52 +0000
(14:32 -0700)
If we miss on the ranges, just toss the translation up to the parent
instead of failing.
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
arch/sparc64/kernel/of_device.c
patch
|
blob
|
history
diff --git
a/arch/sparc64/kernel/of_device.c
b/arch/sparc64/kernel/of_device.c
index fb9bf1e4d036138214d418081c7c38d54340a060..f56569f74435d8ba0ac1411b66b6a879c90bba04 100644
(file)
--- a/
arch/sparc64/kernel/of_device.c
+++ b/
arch/sparc64/kernel/of_device.c
@@
-508,6
+508,13
@@
static int __init build_one_resource(struct device_node *parent,
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;
}