Commit fa7b88519e9158cee2b0900d26c049f09f49f8c5
Committed by
Pantelis Antoniou
1 parent
786a27b7ec
Exists in
v2017.01-smarct4x
and in
37 other branches
cmd_mmc: fix bootpart-resize maxarg to 4
sub-command 'bootpart-resize' check for argc == 4, it will retrun CMD_RET_FAILURE when argc value not matched. but bootpart-resize's maxarg is 3, which means you never execute this sub-command successfully. fix it by change bootpart-resize maxarg to 4. Signed-off-by: wally.yeh <wally.yeh@atrustcorp.com> Cc: Wolfgang Denk <wd@denx.de> Cc: Pierre Aubert <p.aubert@staubli.com> Acked-by: Pantelis Antoniou <panto@antoniou-consulting.com>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
common/cmd_mmc.c
... | ... | @@ -602,7 +602,7 @@ |
602 | 602 | U_BOOT_CMD_MKENT(list, 1, 1, do_mmc_list, "", ""), |
603 | 603 | #ifdef CONFIG_SUPPORT_EMMC_BOOT |
604 | 604 | U_BOOT_CMD_MKENT(bootbus, 5, 0, do_mmc_bootbus, "", ""), |
605 | - U_BOOT_CMD_MKENT(bootpart-resize, 3, 0, do_mmc_boot_resize, "", ""), | |
605 | + U_BOOT_CMD_MKENT(bootpart-resize, 4, 0, do_mmc_boot_resize, "", ""), | |
606 | 606 | U_BOOT_CMD_MKENT(partconf, 5, 0, do_mmc_partconf, "", ""), |
607 | 607 | U_BOOT_CMD_MKENT(rst-function, 3, 0, do_mmc_rst_func, "", ""), |
608 | 608 | #endif |