mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-04-01 03:51:31 +00:00
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>
This commit is contained in:
parent
282a82e8a1
commit
021a80559f
1 changed files with 2 additions and 0 deletions
|
@ -1010,6 +1010,8 @@ static int mmc_startup(struct mmc *mmc)
|
||||||
|
|
||||||
if (err)
|
if (err)
|
||||||
return err;
|
return err;
|
||||||
|
else
|
||||||
|
ext_csd[EXT_CSD_ERASE_GROUP_DEF] = 1;
|
||||||
|
|
||||||
/* Read out group size from ext_csd */
|
/* Read out group size from ext_csd */
|
||||||
mmc->erase_grp_size =
|
mmc->erase_grp_size =
|
||||||
|
|
Loading…
Add table
Reference in a new issue