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>
Tue, 14 Jun 2011 16:09:35 +0000 (09:09 -0700)
commit4d2c26338ac3ce78b2325730bfeb4884ba60bd77
tree42c219d7a923eb32dfe9b09554dab222a1e62866
parentfa746fabf17fdcf93450ba16bf831a8faf54e692
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