diff mbox

[v2,2/5] mmc: card: Do not scan RPMB partitions

Message ID 1342011675-11221-1-git-send-email-loic.pallardy-ext@stericsson.com (mailing list archive)
State New, archived
Headers show

Commit Message

Loic Pallardy July 11, 2012, 1:01 p.m. UTC
From: Loic Pallardy <loic.pallardy@stericsson.com>

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>
---
 drivers/mmc/card/block.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Linus Walleij July 14, 2012, 8:25 p.m. UTC | #1
On Wed, Jul 11, 2012 at 3:01 PM, Loic Pallardy
<loic.pallardy-ext@stericsson.com> wrote:

> From: Loic Pallardy <loic.pallardy@stericsson.com>
>
> 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>

Acked-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Namjae Jeon July 16, 2012, 1:25 p.m. UTC | #2
2012/7/11, Loic Pallardy <loic.pallardy-ext@stericsson.com>:
> From: Loic Pallardy <loic.pallardy@stericsson.com>
>
> 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>
Looks good to me.
Reviewed-by: Namjae Jeon <linkinjeon@gmail.com>
You sent only 2/5 patch...
Would you resend all v2 patches after including tag linus's ack and my
reviewed-by ?
Thanks.
> ---
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Loic pallardy July 24, 2012, 11:50 a.m. UTC | #3
2012/7/16 Namjae Jeon <linkinjeon@gmail.com>:

> Would you resend all v2 patches after including tag linus's ack and my
> reviewed-by ?
> Thanks.

Yes, I will resend a new series including acked and reviewed-by tags.
BR,
Loic
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c
index 276d21c..d8edb8d 100644
--- a/drivers/mmc/card/block.c
+++ b/drivers/mmc/card/block.c
@@ -1521,6 +1521,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: