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)
committerSteve Kondik <shade@chemlab.org>
Fri, 17 Sep 2010 01:46:26 +0000 (21:46 -0400)
commite986d9fce736e4ba8c58709737af6f0a4efe258b
tree43dca0b2750f81e95469d66c8bf29e53ecbd04de
parent99f107aede756b379bcd8d72514cd6ba7f45d094
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