[Skiboot] [PATCH] platform/mihawk: Detect old system compatible string

Frederic Barrat fbarrat at linux.ibm.com
Tue Nov 19 03:04:34 AEDT 2019


Newer firmware declares the system as "ibm,mihawk", but the labs are
full of older installs, which were using "wistron,mihawk". Let's keep
detecting the older string since it allows to run recent skiboot on
older fw stack and make people's lives a little tiny bit easier.

Signed-off-by: Frederic Barrat <fbarrat at linux.ibm.com>
---
 platforms/astbmc/mihawk.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/platforms/astbmc/mihawk.c b/platforms/astbmc/mihawk.c
index feae205f..32a902de 100644
--- a/platforms/astbmc/mihawk.c
+++ b/platforms/astbmc/mihawk.c
@@ -231,7 +231,8 @@ static void mihawk_create_ocapi_i2c_bus(void)
 
 static bool mihawk_probe(void)
 {
-	if (!dt_node_is_compatible(dt_root, "ibm,mihawk"))
+	if (!dt_node_is_compatible(dt_root, "ibm,mihawk") &&
+	    !dt_node_is_compatible(dt_root, "wistron,mihawk"))
 		return false;
 
 	/* Lot of common early inits here */
-- 
2.21.0



More information about the Skiboot mailing list