platform: sifive: fu540: Use standard value string for cpu node status
authorBin Meng <bmeng.cn@gmail.com>
Fri, 5 Jul 2019 02:30:50 +0000 (19:30 -0700)
committerAnup Patel <anup.patel@wdc.com>
Mon, 22 Jul 2019 05:44:05 +0000 (11:14 +0530)
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@gmail.com>
Acked-by: Anup Patel <anup.patel@wdc.com>
platform/sifive/fu540/platform.c

index 46b48b8..ee90790 100644 (file)
@@ -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);