aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/card
diff options
context:
space:
mode:
authorLoic Pallardy <loic.pallardy-ext@stericsson.com>2012-08-06 11:12:28 -0400
committerChris Ball <cjb@laptop.org>2012-12-06 13:54:47 -0500
commit53d8f97462b0bbb51150f4d6bc2fd45336a008b9 (patch)
treed299448f7a1d452f06389334170174ec453d8dde /drivers/mmc/card
parent090d25fe224c0933d2b261aad91532e725c1d889 (diff)
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 <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>
Diffstat (limited to 'drivers/mmc/card')
-rw-r--r--drivers/mmc/card/block.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c
index 8e6050869382..1d341f3878ec 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,
1519 md->disk->queue = md->queue.queue; 1519 md->disk->queue = md->queue.queue;
1520 md->disk->driverfs_dev = parent; 1520 md->disk->driverfs_dev = parent;
1521 set_disk_ro(md->disk, md->read_only || default_ro); 1521 set_disk_ro(md->disk, md->read_only || default_ro);
1522 if (area_type & MMC_BLK_DATA_AREA_RPMB)
1523 md->disk->flags |= GENHD_FL_NO_PART_SCAN;
1522 1524
1523 /* 1525 /*
1524 * As discussed on lkml, GENHD_FL_REMOVABLE should: 1526 * As discussed on lkml, GENHD_FL_REMOVABLE should: