From: Hannes Petermaier Date: Fri, 8 Aug 2014 07:47:22 +0000 (+0200) Subject: mmc: fix ERASE_GRP_DEF handling X-Git-Tag: v2014.10-rc3~10 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=021a80559f4293368558cc10dbbc75b26ecab059;p=u-boot 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 Signed-off-by: Hannes Petermaier --- diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index a26f3cec20..52a8e36312 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 =