All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 2/5] mmc: card: Do not scan RPMB partitions
@ 2012-07-11 13:01 Loic Pallardy
  2012-07-14 20:25 ` Linus Walleij
  2012-07-16 13:25 ` Namjae Jeon
  0 siblings, 2 replies; 4+ messages in thread
From: Loic Pallardy @ 2012-07-11 13:01 UTC (permalink / raw)
  To: linux-mmc, Chris Ball
  Cc: Linus Walleij, STEricsson_nomadik_linux, Ulf Hansson,
	Loic Pallardy, Johan Rudholm

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(+)

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:
-- 
1.7.11.1


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

* Re: [PATCH v2 2/5] mmc: card: Do not scan RPMB partitions
  2012-07-11 13:01 [PATCH v2 2/5] mmc: card: Do not scan RPMB partitions Loic Pallardy
@ 2012-07-14 20:25 ` Linus Walleij
  2012-07-16 13:25 ` Namjae Jeon
  1 sibling, 0 replies; 4+ messages in thread
From: Linus Walleij @ 2012-07-14 20:25 UTC (permalink / raw)
  To: Loic Pallardy
  Cc: linux-mmc, Chris Ball, STEricsson_nomadik_linux, Ulf Hansson,
	Loic Pallardy, Johan Rudholm

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

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

* Re: [PATCH v2 2/5] mmc: card: Do not scan RPMB partitions
  2012-07-11 13:01 [PATCH v2 2/5] mmc: card: Do not scan RPMB partitions Loic Pallardy
  2012-07-14 20:25 ` Linus Walleij
@ 2012-07-16 13:25 ` Namjae Jeon
  2012-07-24 11:50   ` Loic pallardy
  1 sibling, 1 reply; 4+ messages in thread
From: Namjae Jeon @ 2012-07-16 13:25 UTC (permalink / raw)
  To: Loic Pallardy
  Cc: linux-mmc, Chris Ball, Linus Walleij, STEricsson_nomadik_linux,
	Ulf Hansson, Loic Pallardy, Johan Rudholm

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.
> ---

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

* Re: [PATCH v2 2/5] mmc: card: Do not scan RPMB partitions
  2012-07-16 13:25 ` Namjae Jeon
@ 2012-07-24 11:50   ` Loic pallardy
  0 siblings, 0 replies; 4+ messages in thread
From: Loic pallardy @ 2012-07-24 11:50 UTC (permalink / raw)
  To: Namjae Jeon
  Cc: Loic Pallardy, linux-mmc, Chris Ball, Linus Walleij,
	STEricsson_nomadik_linux, Loic Pallardy, Johan Rudholm

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

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

end of thread, other threads:[~2012-07-24 11:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-11 13:01 [PATCH v2 2/5] mmc: card: Do not scan RPMB partitions Loic Pallardy
2012-07-14 20:25 ` Linus Walleij
2012-07-16 13:25 ` Namjae Jeon
2012-07-24 11:50   ` Loic pallardy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.