diff options
author | Yogesh Gaur <yogeshnarayan.gaur@nxp.com> | 2017-11-28 04:41:14 (GMT) |
---|---|---|
committer | Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com> | 2017-12-26 13:35:59 (GMT) |
commit | ab438239e73704a3446c86e05672f4b84ac8ff55 (patch) | |
tree | 98ca1241a2bed598a8badaa492910b09038427ab | |
parent | ecd4771621109d1b93d85e78a033125f6d415dd7 (diff) | |
download | u-boot-ab438239e73704a3446c86e05672f4b84ac8ff55.tar.xz |
driver: fsl-mc: MC object cleanup when DPL not loaded
For case when MC is loaded but DPL is not deployed perform MC
object [DPBP, DPIO, DPNI and DPRC] cleanup.
Signed-off-by: Yogesh Gaur <yogeshnarayan.gaur@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
-rw-r--r-- | drivers/net/fsl-mc/mc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/fsl-mc/mc.c b/drivers/net/fsl-mc/mc.c index bf9949b..f36fe06 100644 --- a/drivers/net/fsl-mc/mc.c +++ b/drivers/net/fsl-mc/mc.c @@ -1436,12 +1436,13 @@ int fsl_mc_ldpaa_exit(bd_t *bd) */ if (bd && mc_boot_status && !is_dpl_apply_status) { printf("fsl-mc: DPL not deployed, DPAA2 ethernet not work\n"); - return 0; + goto mc_obj_cleanup; } if (bd && mc_boot_status && is_dpl_apply_status) return 0; +mc_obj_cleanup: err = dpbp_exit(); if (err < 0) { printf("dpbp_exit() failed: %d\n", err); |