diff options
author | Tom Rini <trini@konsulko.com> | 2023-04-10 08:32:11 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-04-10 08:32:11 -0400 |
commit | 11c25c6df0b56ee7eee2c4ddc7f075880daeb8c7 (patch) | |
tree | e4660057ce4770ebd72f05a365b01240b10a467c /cmd | |
parent | 7daa8dd59bc8455a43cdd2d0e34206e406e5cdcc (diff) | |
parent | fbf368f176641029ac30843d4d3dbf26e384df38 (diff) |
Merge https://source.denx.de/u-boot/custodians/u-boot-mmc
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/mmc.c | 18 | ||||
-rw-r--r-- | cmd/mvebu/bubt.c | 3 |
2 files changed, 14 insertions, 7 deletions
@@ -175,7 +175,7 @@ static int do_mmcinfo(struct cmd_tbl *cmdtp, int flag, int argc, curr_device = 0; else { puts("No MMC device available\n"); - return 1; + return CMD_RET_FAILURE; } } @@ -927,7 +927,7 @@ static int mmc_partconf_print(struct mmc *mmc, const char *varname) static int do_mmc_partconf(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { - int dev; + int ret, dev; struct mmc *mmc; u8 ack, part_num, access; @@ -953,13 +953,17 @@ static int do_mmc_partconf(struct cmd_tbl *cmdtp, int flag, access = dectoul(argv[4], NULL); /* acknowledge to be sent during boot operation */ - return mmc_set_part_conf(mmc, ack, part_num, access); + ret = mmc_set_part_conf(mmc, ack, part_num, access); + if (ret != 0) + return CMD_RET_FAILURE; + + return CMD_RET_SUCCESS; } static int do_mmc_rst_func(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { - int dev; + int ret, dev; struct mmc *mmc; u8 enable; @@ -988,7 +992,11 @@ static int do_mmc_rst_func(struct cmd_tbl *cmdtp, int flag, return CMD_RET_FAILURE; } - return mmc_set_rst_n_function(mmc, enable); + ret = mmc_set_rst_n_function(mmc, enable); + if (ret != 0) + return CMD_RET_FAILURE; + + return CMD_RET_SUCCESS; } #endif static int do_mmc_setdsr(struct cmd_tbl *cmdtp, int flag, diff --git a/cmd/mvebu/bubt.c b/cmd/mvebu/bubt.c index 49797b2314..37ff9c4552 100644 --- a/cmd/mvebu/bubt.c +++ b/cmd/mvebu/bubt.c @@ -223,8 +223,7 @@ static int mmc_burn_image(size_t image_size) orig_part = mmc->block_dev.hwpart; #endif - part = (mmc->part_config >> 3) & PART_ACCESS_MASK; - + part = EXT_CSD_EXTRACT_BOOT_PART(mmc->part_config); if (part == 7) part = 0; |