提交 de0f9ad1 编写于 作者: M Mian Yousaf Kaukab 提交者: Prabhakar Kushwaha

board: lx2160a: fix fsl-mc status in fdt with bootefi

fsl-mc lazyapply command applies dpl from efi_exit_boot_services().
Status of fsl-mc node in working fdt is updated at this stage.
However, an efi application like grub may already have copied the fdt.
So the updates to fdt done at efi_exit_boot_services() may not be
visible to the OS. Fix it by updating fdt earlier if fsl-mc lazyapply
command is used.
Signed-off-by: NMian Yousaf Kaukab <ykaukab@suse.de>
Reviewed-by: NPrabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
上级 91f54e7c
......@@ -509,7 +509,8 @@ void fdt_fixup_board_enet(void *fdt)
return;
}
if ((get_mc_boot_status() == 0) && (get_dpl_apply_status() == 0)) {
if (get_mc_boot_status() == 0 &&
(is_lazy_dpl_addr_valid() || get_dpl_apply_status() == 0)) {
fdt_status_okay(fdt, offset);
fdt_fixup_board_phy(fdt);
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册