OSDN Git Service

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)
committerBrian Swetland <swetland@google.com>
Tue, 29 Mar 2011 20:57:58 +0000 (13:57 -0700)
commit3459b2f8e03d425aefa9c5adda65d82da33e51d8
tree4fed3e6aa8f4dbb2529947a8cd9b75858775c03b
parent344b509109bf38beffeeaff16632e0db5a6cc973
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