lkml.org 
[lkml]   [2011]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRFC : mmc : boot partition is set as a read-write.
    From
    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.


    \
     
     \ /
      Last update: 2011-09-19 05:13    [W:0.027 / U:0.036 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site