Commit 021a80559f4293368558cc10dbbc75b26ecab059

Authored by Hannes Petermaier
Committed by Pantelis Antoniou
1 parent 282a82e8a1

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>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

... ... @@ -1010,6 +1010,8 @@
1010 1010  
1011 1011 if (err)
1012 1012 return err;
  1013 + else
  1014 + ext_csd[EXT_CSD_ERASE_GROUP_DEF] = 1;
1013 1015  
1014 1016 /* Read out group size from ext_csd */
1015 1017 mmc->erase_grp_size =