[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [POWERPC][XEN] Ignore device tree nodes missing "device_type".



# HG changeset patch
# User Hollis Blanchard <hollisb@xxxxxxxxxx>
# Node ID d6b44cb7d2c967b5ae00a6a61f4a005e7859c74e
# Parent  da882f0212d6e47824238cd791447a09f927e1ee
[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 da882f0212d6 -r d6b44cb7d2c9 xen/arch/powerpc/boot_of.c
--- a/xen/arch/powerpc/boot_of.c        Sat Nov 11 12:04:45 2006 -0500
+++ 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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.