From: Light Hsieh <light.hsieh@xxxxxxxxxxxx> set ro attribute of block device according to write-protection status Light Hsieh (3): mmc: record wp_grp_size and boot_wp_status mmc: check write-protection status during BLKROSET ioctl block: set partition read/write policy according to write-protection status block/ioctl.c | 2 +- block/partition-generic.c | 10 +++ drivers/mmc/core/block.c | 217 ++++++++++++++++++++++++++++++++++++++++++++++ drivers/mmc/core/mmc.c | 16 ++++ include/linux/blkdev.h | 1 + include/linux/mmc/card.h | 3 + include/linux/mmc/mmc.h | 2 + 7 files changed, 250 insertions(+), 1 deletion(-) -- 1.8.1.1.dirty