Skip to content
Commit e90cb0db authored by Sean Anderson's avatar Sean Anderson Committed by Leo Yu-Chi Liang
Browse files

riscv: Fix arch_fixup_fdt always failing without /chosen



If /chosen was missing, chosen_offset would never get updated with the new
/chosen node. This would cause fdt_setprop_u32 to fail. This patch fixes
this by setting chosen_offset. In addition, log any errors from setting
boot-hartid as well.

Fixes: 5370478d ("riscv: Add boot hartid to device tree")
Signed-off-by: default avatarSean Anderson <seanga2@gmail.com>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
Reviewed-by: default avatarRick Chen <rick@andestech.com>
Reviewed-by: default avatarAtish Patra <atish.patra@wdc.com>
parent a6d7e8c9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment