commit | f8e89d67166bbcd34a3144b8001b3819b58d02c9 | [log] [tgz] |
---|---|---|
author | Diego Santa Cruz <Diego.SantaCruz@spinetix.com> | Tue Dec 23 10:50:21 2014 +0100 |
committer | Pantelis Antoniou <pantelis.antoniou@konsulko.com> | Mon Jan 19 17:02:29 2015 +0200 |
tree | 883664bbbe0209fff253435516562a74dd6acc10 | |
parent | 0c453bb76c9578139e1c43e4f0d7a5575fafce8e [diff] [blame] |
mmc: computation of eMMC GP partition size was missing 512 KiB factor Signed-off-by: Diego Santa Cruz <Diego.SantaCruz@spinetix.com>
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 5e9926c..86c4db9 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c
@@ -1026,6 +1026,7 @@ mmc->capacity_gp[i] *= ext_csd[EXT_CSD_HC_ERASE_GRP_SIZE]; mmc->capacity_gp[i] *= ext_csd[EXT_CSD_HC_WP_GRP_SIZE]; + mmc->capacity_gp[i] <<= 19; if (mmc->capacity_gp[i]) has_parts = true; }