d2d8afae33
Use the function 'mmc_send_status' to check the card status. only when the card is ready, driver can send the next erase command to the card, otherwise, the erase will failed: => mmc erase 0 1 MMC erase: dev # 0, block # 0, count 1 ... 1 blocks erase: OK => mmc erase 0 2 MMC erase: dev # 0, block # 0, count 2 ... mmc erase failed 1 blocks erase: ERROR => mmc erase 0 4 MMC erase: dev # 0, block # 0, count 4 ... mmc erase failed 1 blocks erase: ERROR Signed-off-by: Jerry Huang <Chang-Ming.Huang@freescale.com> CC: Andy Fleming <afleming@gmail.com> CC: Marek Vasut <marex@denx.de> Signed-off-by: Andy Fleming <afleming@freescale.com> |
||
---|---|---|
.. | ||
arm_pl180_mmci.c | ||
arm_pl180_mmci.h | ||
bfin_sdh.c | ||
davinci_mmc.c | ||
fsl_esdhc.c | ||
ftsdc010_esdhc.c | ||
gen_atmel_mci.c | ||
Makefile | ||
mmc_spi.c | ||
mmc.c | ||
mv_sdhci.c | ||
mxcmmc.c | ||
mxsmmc.c | ||
omap_hsmmc.c | ||
pxa_mmc_gen.c | ||
pxa_mmc.c | ||
pxa_mmc.h | ||
s5p_sdhci.c | ||
sdhci.c | ||
sh_mmcif.c | ||
sh_mmcif.h | ||
tegra_mmc.c | ||
tegra_mmc.h |