]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
mmc: card: Do not scan RPMB partitions
authorLoic Pallardy <loic.pallardy-ext@stericsson.com>
Mon, 6 Aug 2012 15:12:28 +0000 (17:12 +0200)
committerChris Ball <cjb@laptop.org>
Thu, 6 Dec 2012 18:54:47 +0000 (13:54 -0500)
Do not scan rpmb partitions for "soft" partitions, since the rpmb
partition contains protected data. Silences the following message
during boot:

 mmcblkXRPMB: unknown partition table

Signed-off-by: Johan Rudholm <johan.rudholm@stericsson.com>
Reviewed-by: Namjae Jeon <linkinjeon@gmail.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Krishna Konda <kkonda@codeaurora.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/card/block.c

index 8e6050869382ab086a8c5d57f783daa077533745..1d341f3878ec4272d70d20d24b3feef1803bf359 100644 (file)
@@ -1519,6 +1519,8 @@ static struct mmc_blk_data *mmc_blk_alloc_req(struct mmc_card *card,
        md->disk->queue = md->queue.queue;
        md->disk->driverfs_dev = parent;
        set_disk_ro(md->disk, md->read_only || default_ro);
+       if (area_type & MMC_BLK_DATA_AREA_RPMB)
+               md->disk->flags |= GENHD_FL_NO_PART_SCAN;
 
        /*
         * As discussed on lkml, GENHD_FL_REMOVABLE should: