mmc: subtract boot sectors from disk size for eMMC 4.3+ devices
authorGary King <gking@nvidia.com>
Fri, 16 Jul 2010 00:11:32 +0000 (17:11 -0700)
committerColin Cross <ccross@android.com>
Wed, 6 Oct 2010 23:28:02 +0000 (16:28 -0700)
commit2cdc235bbeb09b2b78cd02a94ab79c265861aea9
tree75cb7e767e80d01a3c5fac2d0d0f48e38b94797d
parent52525d352a8939eca5a98567e973e37c322dae2e
mmc: subtract boot sectors from disk size for eMMC 4.3+ devices

the csd sector count reported by eMMC 4.3+ cards includes the boot
partition size; subtract this from the size reported to the disk
since the boot partition is inaccessible

Change-Id: I601b83aa0159b7aa446409ea8c945b256dd0b5b1
Signed-off-by: Gary King <gking@nvidia.com>
drivers/mmc/core/mmc.c
include/linux/mmc/mmc.h