From: Loic Pallardy Date: Mon, 6 Aug 2012 15:12:28 +0000 (+0200) Subject: mmc: card: Do not scan RPMB partitions X-Git-Tag: v3.8-rc1~190^2~46 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=53d8f97462b0bbb51150f4d6bc2fd45336a008b9;p=platform%2Fkernel%2Flinux-3.10.git mmc: card: Do not scan RPMB partitions 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 Reviewed-by: Namjae Jeon Acked-by: Linus Walleij Acked-by: Krishna Konda Signed-off-by: Chris Ball --- diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index 8e60508..1d341f3 100644 --- a/drivers/mmc/card/block.c +++ b/drivers/mmc/card/block.c @@ -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: