This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-changelog] [xen-unstable] [POWERPC][XEN] Ignore device tree nodes m

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [POWERPC][XEN] Ignore device tree nodes missing "device_type".
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 13 Dec 2006 17:34:49 +0000
Delivery-date: Wed, 13 Dec 2006 09:38:38 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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)

Xen-changelog mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [POWERPC][XEN] Ignore device tree nodes missing "device_type"., Xen patchbot-unstable <=