ipq807x: Fix the ethernet initialisation when crash dump occurs

Change-Id: Ic271165b1a708bb6f3a7d06051a9cc5b846604b6
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
This commit is contained in:
Sham Muthayyan 2017-10-30 15:09:13 +05:30 committed by Gerrit - the friendly Code Review server
parent db4516262a
commit 21c5c6af9f
2 changed files with 4 additions and 3 deletions

View file

@ -435,7 +435,7 @@ static int do_boot_signedimg(cmd_tbl_t *cmdtp, int flag, int argc, char *const a
#ifdef CONFIG_QCA_APPSBL_DLOAD
if (qca_appsbl_dload() == CMD_RET_FAILURE)
return CMD_RET_FAILURE;
return CMD_RET_CRASH_DUMP;
#endif
if ((ret = set_fs_bootargs(&ipq_fs_on_nand)))
return ret;
@ -601,7 +601,7 @@ static int do_boot_unsignedimg(cmd_tbl_t *cmdtp, int flag, int argc, char *const
debug = 1;
#ifdef CONFIG_QCA_APPSBL_DLOAD
if (qca_appsbl_dload() == CMD_RET_FAILURE)
return CMD_RET_FAILURE;
return CMD_RET_CRASH_DUMP;
#endif
if ((ret = set_fs_bootargs(&ipq_fs_on_nand)))
@ -771,7 +771,7 @@ static int do_bootipq(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
ret = do_boot_unsignedimg(cmdtp, flag, argc, argv);
}
if (ret != CMD_RET_SUCCESS) {
if (ret == CMD_RET_FAILURE) {
#ifdef CONFIG_IPQ_ETH_INIT_DEFER
puts("\nNet: ");
eth_initialize();

View file

@ -122,6 +122,7 @@ extern int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
enum command_ret_t {
CMD_RET_SUCCESS, /* 0 = Success */
CMD_RET_FAILURE, /* 1 = Failure */
CMD_RET_CRASH_DUMP, /* 2 = Crash dump */
CMD_RET_USAGE = -1, /* Failure, please report 'usage' error */
};