cmd_mmc: fix bootpart-resize maxarg to 4
PATCH 1/1 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 <[email protected]>
Cc Wolfgang Denk <[email protected]>
Cc Pierre Aubert <[email protected]>
--- common/cmd_mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
common/cmd_mmc.c +1 -1
@@ -602,7 +602,7 @@ static cmd_tbl_t cmd_mmc[] = { U_BOOT_CMD_MKENT(list, 1, 1, do_mmc_list, "", ""),#ifdef CONFIG_SUPPORT_EMMC_BOOT U_BOOT_CMD_MKENT (bootbus,5 ,0 , do_mmc_bootbus,"" ,"" ), -U_BOOT_CMD_MKENT (bootpart-resize,3 ,0 , do_mmc_boot_resize,"" ,"" ), +U_BOOT_CMD_MKENT (bootpart-resize,4 ,0 , do_mmc_boot_resize,"" ,"" ),U_BOOT_CMD_MKENT (partconf,5 ,0 , do_mmc_partconf,"" ,"" ), U_BOOT_CMD_MKENT(rst-function, 3, 0, do_mmc_rst_func, "", ""), #endif
Signature · 1 line
1.7.10.4
PATCH 1/1 cmd_mmc: fix bootpart-resize maxarg to 4
sorry for send this patch two times, It shows being held until the list moderator can review it for approval.
I think maybe I didn't register the correct mail address and sent it again. but it still show wait for moderator review.
At last I register my private mail address to this list and found I have post the same post two time.
I'm so sorry for this mistake.
Wally