commit | 747f6fa3611052113d451d7eed67bc37e8a4dd07 | [log] [tgz] |
---|---|---|
author | Diego Santa Cruz <Diego.SantaCruz@spinetix.com> | Tue Dec 23 10:50:24 2014 +0100 |
committer | Pantelis Antoniou <pantelis.antoniou@konsulko.com> | Mon Jan 19 17:02:29 2015 +0200 |
tree | bfb0730a055502f3a73fc89cc7d95071dc3fecb8 | |
parent | 2b45f586f36b0c841be68c936bf5e972286a150e [diff] |
mmc: fix erase_grp_size computation with high-capacity size definition The erase_grp_size in struct mmc is to be a size in 512-byte sectors but the code used to compute it for eMMC when EXT_CSD_ERASE_GROUP_DEF is enabled computed it as bytes, leading to erase sizes and alignment much larger than what is actually required by the mmc device. Signed-off-by: Diego Santa Cruz <Diego.SantaCruz@spinetix.com>