linux-mmc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mmc: card: Do not scan boot partitions
@ 2012-06-12 13:04 Johan Rudholm
  2012-06-20  6:18 ` Chris Ball
  0 siblings, 1 reply; 8+ messages in thread
From: Johan Rudholm @ 2012-06-12 13:04 UTC (permalink / raw)
  To: linux-mmc, Chris Ball; +Cc: Per Forlin, Ulf Hansson, Johan Rudholm

Do not scan boot partitions for "soft" partitions, since the boot
partitions are supposed to contain boot code. Silences the following
message during boot:

 mmcblkXbootY: unknown partition table

Signed-off-by: Johan Rudholm <johan.rudholm@stericsson.com>
---
 drivers/mmc/card/block.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c
index 7e3f453..efdea68 100644
--- a/drivers/mmc/card/block.c
+++ b/drivers/mmc/card/block.c
@@ -1515,6 +1515,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_BOOT)
+		md->disk->flags = GENHD_FL_NO_PART_SCAN;
 
 	/*
 	 * As discussed on lkml, GENHD_FL_REMOVABLE should:
-- 
1.7.10


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-06-21  8:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-12 13:04 [PATCH] mmc: card: Do not scan boot partitions Johan Rudholm
2012-06-20  6:18 ` Chris Ball
2012-06-20  7:27   ` Johan Rudholm
2012-06-20  7:51     ` Ulf Hansson
2012-06-20  8:55     ` Linus Walleij
2012-06-20 14:04       ` Johan Rudholm
2012-06-20 17:38       ` Chris Ball
2012-06-21  8:05         ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).