mmc: boot partition ro lock support
authorJohan Rudholm <johan.rudholm@stericsson.com>
Fri, 2 Dec 2011 07:51:06 +0000 (08:51 +0100)
committerChris Ball <cjb@laptop.org>
Thu, 12 Jan 2012 04:58:43 +0000 (23:58 -0500)
commitadd710eaa88606de8ba98a014d37178579e6dbaf
tree2d719508cabd213d5923cef95fdd3d6c9c40d977
parent92df954df3422a7dcf99eea34cf4cb68bb06ea08
mmc: boot partition ro lock support

Enable boot partitions to be read-only locked until next power on via
a sysfs entry. There will be one sysfs entry for each boot partition:

/sys/block/mmcblkXbootY/ro_lock_until_next_power_on

Each boot partition is locked by writing 1 to its file.

Signed-off-by: Johan Rudholm <johan.rudholm@stericsson.com>
Signed-off-by: John Beckett <john.beckett@stericsson.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Documentation/mmc/mmc-dev-parts.txt
drivers/mmc/card/block.c
drivers/mmc/core/mmc.c
include/linux/mmc/card.h
include/linux/mmc/mmc.h