projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ceded37
)
driver: net: fsl-mc: Return from DPAA_exit if boot_status !=0
author
Prabhakar Kushwaha
<
[email protected]
>
Mon, 21 Mar 2016 08:49:39 +0000
(14:19 +0530)
committer
York Sun
<
[email protected]
>
Mon, 21 Mar 2016 19:42:15 +0000
(12:42 -0700)
Return value of get_mc_boot_status() in case of failure is not necessary
to be -1.
So update the error condition check.
Signed-off-by: Prabhakar Kushwaha <
[email protected]
>
Reported-by: Yao Yuan <
[email protected]
>
Acked-by: Joe Hershberger <
[email protected]
>
Reviewed-by: York Sun <
[email protected]
>
drivers/net/fsl-mc/mc.c
patch
|
blob
|
history
diff --git
a/drivers/net/fsl-mc/mc.c
b/drivers/net/fsl-mc/mc.c
index 53c4966c330e89b7c37d99ca6e8fc54a34f51624..f83bd0c7f0b371510532ee991eb4ba94ae38ad4a 100644
(file)
--- a/
drivers/net/fsl-mc/mc.c
+++ b/
drivers/net/fsl-mc/mc.c
@@
-1147,7
+1147,8
@@
int fsl_mc_ldpaa_exit(bd_t *bd)
{
int err = 0;
- if (bd && get_mc_boot_status() == -1)
+ /* MC is not loaded intentionally, So return success. */
+ if (bd && get_mc_boot_status() != 0)
return 0;
if (bd && !get_mc_boot_status() && get_dpl_apply_status() == -1) {