[PATCH] platform: sifive: fu540: Use standard value string for cpu node status

Anup Patel Anup.Patel at wdc.com
Sun Jul 21 23:03:16 PDT 2019



> -----Original Message-----
> From: opensbi <opensbi-bounces at lists.infradead.org> On Behalf Of Bin
> Meng
> Sent: Friday, July 5, 2019 8:01 AM
> To: opensbi <opensbi at lists.infradead.org>
> Subject: [PATCH] platform: sifive: fu540: Use standard value string for cpu
> node status
> 
> Per device tree spec, the standard value string for the "status"
> property of a cpu node is either "okay" or "disabled". "masked"
> was once used but it is unfortunately a spec violation.
> 
> Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
> ---
> 
>  platform/sifive/fu540/platform.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/platform/sifive/fu540/platform.c
> b/platform/sifive/fu540/platform.c
> index 46b48b8..ee90790 100644
> --- a/platform/sifive/fu540/platform.c
> +++ b/platform/sifive/fu540/platform.c
> @@ -70,7 +70,8 @@ static void fu540_modify_dt(void *fdt)
>  				 !strcmp(mmu_type, "riscv,sv48")))
>  			continue;
>  		else
> -			fdt_setprop_string(fdt, cpu_offset, "status",
> "masked");
> +			fdt_setprop_string(fdt, cpu_offset, "status",
> +					   "disabled");
>  		memset(cpu_node, 0, sizeof(cpu_node));
>  	}
>  	size = fdt_totalsize(fdt);
> --
> 2.7.4
> 
> 
> _______________________________________________
> opensbi mailing list
> opensbi at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/opensbi

Applied this patch to riscv/opensbi repo

Thanks,
Anup



More information about the opensbi mailing list