[Skiboot] [PATCH] platform/astbmc: Do not delete compatible property

Vasant Hegde hegdevasant at linux.vnet.ibm.com
Mon Mar 13 22:53:11 AEDT 2017


P9 onwards OPAL is building device tree for BMC based system using
HDAT. We are populating bmc/compatible node with ast bmc version.
Hence do not delete this properly.

CC: Jeremy Kerr <jk at ozlabs.org>
CC: Ananth N Mavinakayanahalli <ananth at linux.vnet.ibm.com>
Signed-off-by: Vasant Hegde <hegdevasant at linux.vnet.ibm.com>
---
 platforms/astbmc/common.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/platforms/astbmc/common.c b/platforms/astbmc/common.c
index 6f29e61..dba22ae 100644
--- a/platforms/astbmc/common.c
+++ b/platforms/astbmc/common.c
@@ -275,6 +275,10 @@ static void del_compatible(struct dt_node *node)
 {
 	struct dt_property *prop;
 
+	/* Do not delete compatible property on P9 */
+	if (proc_gen > proc_gen_p8)
+		return;
+
 	prop = __dt_find_property(node, "compatible");
 	if (prop)
 		dt_del_property(node, prop);
-- 
2.5.5



More information about the Skiboot mailing list