[U-Boot] [PATCH] driver: net: fsl-mc: Update fsl_mc_ldpaa_exit() path
Prabhakar Kushwaha
prabhakar.kushwaha at nxp.com
Fri Apr 14 08:55:09 UTC 2017
> -----Original Message-----
> From: U-Boot [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Yogesh Gaur
> Sent: Thursday, April 13, 2017 2:35 PM
> To: u-boot at lists.denx.de; york sun <york.sun at nxp.com>
> Cc: Priyanka Jain <priyanka.jain at nxp.com>; Yogesh Narayan Gaur
> <yogeshnarayan.gaur at nxp.com>
> Subject: [U-Boot] [PATCH] driver: net: fsl-mc: Update fsl_mc_ldpaa_exit() path
>
> Earlier when MC is loaded but DPL is not deployed results in FDT fix-up
> code execution hang.
> For this case now print message on console and returns success instead of
> return -ENODEV.
> This update allows to continue fdt fixup execution.
>
> Signed-off-by: Yogesh Gaur <yogeshnarayan.gaur at nxp.com>
> Signed-off-by: Priyanka Jain <Priyanka.jain at nxp.com>
> ---
> drivers/net/fsl-mc/mc.c | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/net/fsl-mc/mc.c b/drivers/net/fsl-mc/mc.c
> index 079082a..f1a40a3 100644
> --- a/drivers/net/fsl-mc/mc.c
> +++ b/drivers/net/fsl-mc/mc.c
> @@ -1268,10 +1268,11 @@ int fsl_mc_ldpaa_exit(bd_t *bd)
> if (bd && get_mc_boot_status() != 0)
> return 0;
>
> + /* For case MC is loaded but DPL is not deployed, return success and
> + * print message on console. Else FDT fix-up code execution hanged. */
> if (bd && !get_mc_boot_status() && get_dpl_apply_status() == -1) {
> - printf("ERROR: fsl-mc: DPL is not applied\n");
> - err = -ENODEV;
> - return err;
> + printf("fsl-mc: MC is loaded but DPL is not deployed\n");
Also add information like DPAA2 ethernet will not work in Linux
--prabhakar
More information about the U-Boot
mailing list