From: Johan Rudholm <johan.rudholm@stericsson.com>
To: linux-mmc@vger.kernel.org, Chris Ball <cjb@laptop.org>
Cc: Per Forlin <per.forlin@stericsson.com>,
Ulf Hansson <ulf.hansson@stericsson.com>,
Johan Rudholm <johan.rudholm@stericsson.com>
Subject: [PATCH] mmc: card: Do not scan boot partitions
Date: Tue, 12 Jun 2012 15:04:13 +0200 [thread overview]
Message-ID: <1339506253-7164-1-git-send-email-johan.rudholm@stericsson.com> (raw)
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
next reply other threads:[~2012-06-12 13:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-12 13:04 Johan Rudholm [this message]
2012-06-20 6:18 ` [PATCH] mmc: card: Do not scan boot partitions 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1339506253-7164-1-git-send-email-johan.rudholm@stericsson.com \
--to=johan.rudholm@stericsson.com \
--cc=cjb@laptop.org \
--cc=linux-mmc@vger.kernel.org \
--cc=per.forlin@stericsson.com \
--cc=ulf.hansson@stericsson.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).