]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
mmc: computation of eMMC GP partition size was missing 512 KiB factor
authorDiego Santa Cruz <Diego.SantaCruz@spinetix.com>
Tue, 23 Dec 2014 09:50:21 +0000 (10:50 +0100)
committerPantelis Antoniou <pantelis.antoniou@konsulko.com>
Mon, 19 Jan 2015 15:02:29 +0000 (17:02 +0200)
Signed-off-by: Diego Santa Cruz <Diego.SantaCruz@spinetix.com>
drivers/mmc/mmc.c

index 5e9926cddf64987abe4ec1e5490b3c3f9190b134..86c4db9f6f725ecff5588d651c37c72715cc729c 100644 (file)
@@ -1026,6 +1026,7 @@ static int mmc_startup(struct mmc *mmc)
                        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;
                }