From 425340bd2809808f21856d80bf76b785b87b6041 Mon Sep 17 00:00:00 2001 From: Frederic Barrat Date: Mon, 18 Nov 2019 17:04:34 +0100 Subject: [PATCH] platform/mihawk: Detect old system compatible string 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. Reviewed-by: Andrew Donnellan Reviewed-by: Stewart Smith Signed-off-by: Frederic Barrat Signed-off-by: Oliver O'Halloran --- 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 feae205f4094..32a902de2c21 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 */