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

Andrew Donnellan ajd at linux.ibm.com
Tue Nov 19 10:29:33 AEDT 2019


On 19/11/19 3:04 am, Frederic Barrat wrote:
> 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>

Reviewed-by: Andrew Donnellan <ajd 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 */
> 

-- 
Andrew Donnellan              OzLabs, ADL Canberra
ajd at linux.ibm.com             IBM Australia Limited



More information about the Skiboot mailing list