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)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:06:02 +0000 (12:06 -0800)
commit27ad497e00af3a91e72971951094b3396b9f40c6
tree10867743fef5b3595b69e1d134837d5f82d561be
parent1d0082ea50e336db1df2a0a90308a6bd296a11f9
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