[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1372548314-12785-1-git-send-email-olof@lixom.net>
Date: Sat, 29 Jun 2013 16:25:14 -0700
From: Olof Johansson <olof@...om.net>
To: torvalds@...ux-foundation.org
Cc: Maxime Ripard <maxime.ripard@...e-electrons.com>,
Lorenzo Pieralisi <lorenzo.pieralisi@....com>, arnd@...db.de,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
Emilio Lopez <emilio@...pez.com.ar>, linux@....linux.org.uk,
Olof Johansson <olof@...om.net>
Subject: [PATCH] ARM: dt: Only print warning, not WARN() on bad cpu map in device tree
Due to recent changes and expecations of proper cpu bindings, there are
now cases for many of the in-tree devicetrees where a WARN() will hit
on boot due to badly formatted /cpus nodes.
Downgrade this to a pr_warn() to be less alarmist, since it's not a
new problem.
Tested on Arndale, Cubox, Seaboard and Panda ES. Panda hits the WARN
without this, the others do not.
Acked-by: Russell King <rmk+kernel@....linux.org.uk>
Signed-off-by: Olof Johansson <olof@...om.net>
---
Linus, please apply directly for 3.10 if there is still time. Thanks!
-Olof
arch/arm/kernel/devtree.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/arm/kernel/devtree.c b/arch/arm/kernel/devtree.c
index 0905502..5859c8b 100644
--- a/arch/arm/kernel/devtree.c
+++ b/arch/arm/kernel/devtree.c
@@ -152,9 +152,10 @@ void __init arm_dt_init_cpu_maps(void)
tmp_map[i] = hwid;
}
- if (WARN(!bootcpu_valid, "DT missing boot CPU MPIDR[23:0], "
- "fall back to default cpu_logical_map\n"))
+ if (!bootcpu_valid) {
+ pr_warn("DT missing boot CPU MPIDR[23:0], fall back to default cpu_logical_map\n");
return;
+ }
/*
* Since the boot CPU node contains proper data, and all nodes have
--
1.8.1.192.gc4361b8
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists