aboutsummaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@stericsson.com>2011-05-03 15:10:16 +0200
committerLinus WALLEIJ <linus.walleij@stericsson.com>2011-05-04 22:56:21 +0200
commitd2aa06c10251ad48c69aceffcc30ba695d611fe4 (patch)
treec01e12a09280615d2a44dc8c728bb3d4b7b51917 /drivers/mmc
parentbf8541b72bc3bc7a2dc73792e3a73004bdc0d723 (diff)
Revert "mmc: subtract boot sectors from disk size for eMMC 4.3+ devices"
This reverts commit d1091958185e0dae6eba967a435d9db2d5f660bf. Substracting the boot sectors from the total numbers of sectors to get the disk size, is not according to the spec. This is the reason behind this revert. Conflicts: drivers/mmc/core/mmc.c Change-Id: Ief1995010c0b5b92226f08026b97675f27709083 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/22093 Tested-by: Ulf HANSSON <ulf.hansson@stericsson.com> Reviewed-by: QATEST Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/core/mmc.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
index 27d7371e034..eddba13ced0 100644
--- a/drivers/mmc/core/mmc.c
+++ b/drivers/mmc/core/mmc.c
@@ -238,13 +238,6 @@ static int mmc_read_ext_csd(struct mmc_card *card)
/* Cards with density > 2GiB are sector addressed */
if (card->ext_csd.sectors > (2u * 1024 * 1024 * 1024) / 512)
mmc_card_set_blockaddr(card);
-
- if (card->ext_csd.sectors) {
- unsigned boot_sectors;
- /* size is in 256K chunks, i.e. 512 sectors each */
- boot_sectors = ext_csd[EXT_CSD_BOOT_SIZE_MULTI] * 512;
- card->ext_csd.sectors -= boot_sectors;
- }
}
switch (ext_csd[EXT_CSD_CARD_TYPE] & EXT_CSD_CARD_TYPE_MASK) {