diff options
author | Hannes Petermaier <Hannes.Petermaier@br-automation.com> | 2014-08-08 09:47:22 +0200 |
---|---|---|
committer | Pantelis Antoniou <panto@antoniou-consulting.com> | 2014-10-03 17:26:49 +0300 |
commit | 021a80559f4293368558cc10dbbc75b26ecab059 (patch) | |
tree | 32af9f8715d672946d81c902844994a246aeed95 | |
parent | 282a82e8a10ce6ef132d7a809101fdaed951001c (diff) | |
download | u-boot-imx-021a80559f4293368558cc10dbbc75b26ecab059.zip u-boot-imx-021a80559f4293368558cc10dbbc75b26ecab059.tar.gz u-boot-imx-021a80559f4293368558cc10dbbc75b26ecab059.tar.bz2 |
mmc: fix ERASE_GRP_DEF handling
if we set manually this bit on the eMMC card using mmc_switch(...),
we also have to set it within our (before read) internal structure
'ext_csd'.
Otherwise following checks on this will fail.
Acked-by: Pantelis Antoniou <panto@antoniou-consulting.com>
Signed-off-by: Hannes Petermaier <oe5hpm@oevsv.at>
-rw-r--r-- | drivers/mmc/mmc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index a26f3ce..52a8e36 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -1010,6 +1010,8 @@ static int mmc_startup(struct mmc *mmc) if (err) return err; + else + ext_csd[EXT_CSD_ERASE_GROUP_DEF] = 1; /* Read out group size from ext_csd */ mmc->erase_grp_size = |