mmc: export eMMC4.4 enhanced area details to sysfs
authorChuanxiao Dong <chuanxiao.dong@intel.com>
Fri, 21 Jan 2011 20:09:41 +0000 (04:09 +0800)
committerChris Ball <cjb@laptop.org>
Tue, 15 Mar 2011 17:48:01 +0000 (13:48 -0400)
commit709de99df0ecf3102e7728fbd876a3591859f423
treef1adaa026531d3dcc93cf33c2e8ede84455ca46a
parentcfd80652467717ca7346857d6d8c94503d74f3a3
mmc: export eMMC4.4 enhanced area details to sysfs

Enhanced area feature is a new feature defined in eMMC4.4 standard. This
user data area provides higher performance/reliability, at the expense
of using twice the effective media space due to the area using SLC.

The MMC driver now reads out the enhanced area offset and size and adds
them to the device attributes in sysfs. Enabling the enhanced area can
only be done once, and should be done in manufacturing. To use this
feature, bit ERASE_GRP_DEF should also be set.

Documentation/ABI/testing/sysfs-devices-mmc describes the two new
attributes.

Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Reviewed-by: Chris Ball <cjb@laptop.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
Documentation/ABI/testing/sysfs-devices-mmc [new file with mode: 0644]
drivers/mmc/core/mmc.c
include/linux/mmc/card.h
include/linux/mmc/mmc.h