mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
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:
parent
db4516262a
commit
21c5c6af9f
2 changed files with 4 additions and 3 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue