mmc : boot partition is set as a read-write.

There is a case that user directly update boot partition through mmcblk0boot0,1.
However, the current boot partition is set as a read-only.
I suggest that boot partition is set as a read-write if there is no
reason that it should be read-only.

static int mmc_blk_alloc_parts(struct mmc_card *card, struct mmc_blk_data *md)
{
        int ret = 0;

        if (!mmc_card_mmc(card))
                return 0;

        if (card->ext_csd.boot_size) {
                ret = mmc_blk_alloc_part(card, md, 
EXT_CSD_PART_CONFIG_ACC_BOOT0,
                                         card->ext_csd.boot_size >> 9,
                                         false,
                                         "boot0");
                if (ret)
                        return ret;
                ret = mmc_blk_alloc_part(card, md, 
EXT_CSD_PART_CONFIG_ACC_BOOT1,
                                         card->ext_csd.boot_size >> 9,
                                         false,
                                         "boot1");
                if (ret)
                        return ret;
        }
}

Thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to