mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
mmc: rescan fails on empty slot
Fail in 'mmc rescan' if mmc_init() returns error Signed-off-by: Michael Jones <michael.jones@matrix-vision.de> Acked-by: Andy Fleming <afleming@freescale.com>
This commit is contained in:
parent
c310fc8404
commit
8fd01b8f6b
1 changed files with 4 additions and 2 deletions
|
|
@ -173,9 +173,11 @@ int do_mmcops(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
|||
}
|
||||
|
||||
mmc->has_init = 0;
|
||||
mmc_init(mmc);
|
||||
|
||||
return 0;
|
||||
if (mmc_init(mmc))
|
||||
return 1;
|
||||
else
|
||||
return 0;
|
||||
} else if (strncmp(argv[1], "part", 4) == 0) {
|
||||
block_dev_desc_t *mmc_dev;
|
||||
struct mmc *mmc = find_mmc_device(curr_device);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue