aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/card
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2014-09-03 05:02:23 -0400
committerUlf Hansson <ulf.hansson@linaro.org>2014-09-09 08:16:45 -0400
commitf5b4d71f72c5f08c2e1d0af68ef881f85537e7a1 (patch)
tree81d1066c180478b1a5b3f52a583d90a24ec63690 /drivers/mmc/card
parent0abb71feb228ddbd17e0dfa13216541e036bb549 (diff)
mmc: card: Prevent partition scan for the eMMC boot areas
It seems very unlikely that eMMC devices would hold a standard partitiontable in one of it's boot areas. Therefore, let's prevent them from being scanned. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/card')
-rw-r--r--drivers/mmc/card/block.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c
index 413f984cb76d..e248b960e62c 100644
--- a/drivers/mmc/card/block.c
+++ b/drivers/mmc/card/block.c
@@ -2136,7 +2136,7 @@ static struct mmc_blk_data *mmc_blk_alloc_req(struct mmc_card *card,
2136 md->disk->queue = md->queue.queue; 2136 md->disk->queue = md->queue.queue;
2137 md->disk->driverfs_dev = parent; 2137 md->disk->driverfs_dev = parent;
2138 set_disk_ro(md->disk, md->read_only || default_ro); 2138 set_disk_ro(md->disk, md->read_only || default_ro);
2139 if (area_type & MMC_BLK_DATA_AREA_RPMB) 2139 if (area_type & (MMC_BLK_DATA_AREA_RPMB | MMC_BLK_DATA_AREA_BOOT))
2140 md->disk->flags |= GENHD_FL_NO_PART_SCAN; 2140 md->disk->flags |= GENHD_FL_NO_PART_SCAN;
2141 2141
2142 /* 2142 /*