Re: [U-Boot] [PATCH 1/2] board: lx2160a: fix fsl-mc status in fdt with bootefi

2019-06-19 Thread Prabhakar Kushwaha

> -Original Message-
> From: Mian Yousaf Kaukab 
> Sent: Thursday, May 23, 2019 2:28 PM
> To: u-boot@lists.denx.de; Prabhakar Kushwaha
> 
> Cc: Mian Yousaf Kaukab 
> Subject: [PATCH 1/2] 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: Mian Yousaf Kaukab 
> ---

This patch has been applied to fsl-qoriq master, awaiting upstream.

--pk
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH 1/2] board: lx2160a: fix fsl-mc status in fdt with bootefi

2019-05-23 Thread Mian Yousaf Kaukab
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: Mian Yousaf Kaukab 
---
 board/freescale/lx2160a/lx2160a.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/board/freescale/lx2160a/lx2160a.c 
b/board/freescale/lx2160a/lx2160a.c
index 6109b280c6..3b4cb86692 100644
--- a/board/freescale/lx2160a/lx2160a.c
+++ b/board/freescale/lx2160a/lx2160a.c
@@ -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 {
-- 
2.11.0

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot