Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: card: Do not scan RPMB partitions

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>
Reviewed-by: Namjae Jeon <linkinjeon@gmail.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Krishna Konda <kkonda@codeaurora.org>
Signed-off-by: Chris Ball <cjb@laptop.org>

authored by

Loic Pallardy and committed by
Chris Ball
53d8f974 090d25fe

+2
+2
drivers/mmc/card/block.c
··· 1519 1519 md->disk->queue = md->queue.queue; 1520 1520 md->disk->driverfs_dev = parent; 1521 1521 set_disk_ro(md->disk, md->read_only || default_ro); 1522 + if (area_type & MMC_BLK_DATA_AREA_RPMB) 1523 + md->disk->flags |= GENHD_FL_NO_PART_SCAN; 1522 1524 1523 1525 /* 1524 1526 * As discussed on lkml, GENHD_FL_REMOVABLE should: