[U-Boot] [PATCH] driver: net: fsl-mc: Update fsl_mc_ldpaa_exit() path

Yogesh Gaur yogeshnarayan.gaur at nxp.com
Thu Apr 13 09:05:18 UTC 2017


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");
+		return 0;
 	}
 
 	if (bd && !get_mc_boot_status() && !get_dpl_apply_status())
-- 
1.9.1




More information about the U-Boot mailing list