|
|
|
|
|
|
|
|
|
|
xen-ppc-devel
[XenPPC] [xenppc-unstable] [POWERPC][XEN] Ignore device tree nodes missi
# HG changeset patch
# User Hollis Blanchard <hollisb@xxxxxxxxxx>
# Node ID 79015565d3487b1c4c0d4c630250d685ace81f07
# Parent 41901c3da8aaf907164b60dd81d093920133a3a9
[POWERPC][XEN] Ignore device tree nodes missing "device_type".
The latest release of SLOF is missing mandatory "device_type" properties for
the ISA and system-controller busses. Work around it by just printing a warning
and continuing.
CC: Segher Boessenkool <segher@xxxxxxxxxxxxxxxxxxx>
Signed-off-by: Amos Waterland <apw@xxxxxxxxxx>
Signed-off-by: Hollis Blanchard <hollisb@xxxxxxxxxx>
---
xen/arch/powerpc/boot_of.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff -r 41901c3da8aa -r 79015565d348 xen/arch/powerpc/boot_of.c
--- a/xen/arch/powerpc/boot_of.c Tue Nov 21 15:17:23 2006 -0600
+++ b/xen/arch/powerpc/boot_of.c Tue Nov 21 15:25:02 2006 -0600
@@ -818,8 +818,10 @@ static int __init boot_of_serial(void *o
of_panic("package-to-path failed\n");
rc = of_getprop(p, "device_type", type, sizeof (type));
- if (rc == OF_FAILURE)
- of_panic("fetching device type failed\n");
+ if (rc == OF_FAILURE) {
+ of_printf("%s: fetching type of `%s' failed\n", __func__, buf);
+ continue;
+ }
if (strcmp(type, "serial") != 0)
continue;
_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [XenPPC] [xenppc-unstable] [POWERPC][XEN] Ignore device tree nodes missing "device_type".,
Xen patchbot-xenppc-unstable <=
|
|
|
|
|