From badbe83ecc76b2fea18503e89824daeb7f828dc9 Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Wed, 7 Mar 2018 11:46:10 +0100 Subject: [PATCH] linux: drop obsolete eMMC RPMB patch The underlying issue seems to have been fixed since kernel 4.1 with commit 4e93b9a6abc0d028daf3c8a00cb77b679d8a4df4 "mmc: card: Don't access RPMB partitions for normal read/write" This patch has also been removed from Debian kernels quite some time ago http://lists.alioth.debian.org/pipermail/kernel-svn-changes/2015-September/020884.html Signed-off-by: Matthias Reichl --- ...alize-partitions-on-RPMB-flagged-are.patch | 26 ------------------- ...alize-partitions-on-RPMB-flagged-are.patch | 26 ------------------- 2 files changed, 52 deletions(-) delete mode 100644 packages/linux/patches/default/linux-999.05-eMMC-Don-t-initialize-partitions-on-RPMB-flagged-are.patch delete mode 100644 packages/linux/patches/raspberrypi/linux-999.05-eMMC-Don-t-initialize-partitions-on-RPMB-flagged-are.patch diff --git a/packages/linux/patches/default/linux-999.05-eMMC-Don-t-initialize-partitions-on-RPMB-flagged-are.patch b/packages/linux/patches/default/linux-999.05-eMMC-Don-t-initialize-partitions-on-RPMB-flagged-are.patch deleted file mode 100644 index 02ff57e6e9..0000000000 --- a/packages/linux/patches/default/linux-999.05-eMMC-Don-t-initialize-partitions-on-RPMB-flagged-are.patch +++ /dev/null @@ -1,26 +0,0 @@ -From 57f0b99ca9a2db948fa70988c447553683368be1 Mon Sep 17 00:00:00 2001 -From: Nell Hardcastle -Date: Thu, 29 May 2014 22:06:50 -0700 -Subject: [PATCH] eMMC: Don't initialize partitions on RPMB flagged areas. - -Prevents a lot of pointless hanging at boot on some devices. ---- - drivers/mmc/card/block.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/drivers/mmc/core/block.c b/drivers/mmc/core/block.c -index 4409d79..56df902 100644 ---- a/drivers/mmc/core/block.c -+++ b/drivers/mmc/core/block.c -@@ -2254,7 +2254,7 @@ static int mmc_blk_alloc_parts(struct mmc_card *card, struct mmc_blk_data *md) - return 0; - - for (idx = 0; idx < card->nr_parts; idx++) { -- if (card->part[idx].size) { -+ if (card->part[idx].size && !(card->part[idx].area_type & MMC_BLK_DATA_AREA_RPMB)) { - ret = mmc_blk_alloc_part(card, md, - card->part[idx].part_cfg, - card->part[idx].size >> 9, --- -1.7.10.4 - diff --git a/packages/linux/patches/raspberrypi/linux-999.05-eMMC-Don-t-initialize-partitions-on-RPMB-flagged-are.patch b/packages/linux/patches/raspberrypi/linux-999.05-eMMC-Don-t-initialize-partitions-on-RPMB-flagged-are.patch deleted file mode 100644 index 02ff57e6e9..0000000000 --- a/packages/linux/patches/raspberrypi/linux-999.05-eMMC-Don-t-initialize-partitions-on-RPMB-flagged-are.patch +++ /dev/null @@ -1,26 +0,0 @@ -From 57f0b99ca9a2db948fa70988c447553683368be1 Mon Sep 17 00:00:00 2001 -From: Nell Hardcastle -Date: Thu, 29 May 2014 22:06:50 -0700 -Subject: [PATCH] eMMC: Don't initialize partitions on RPMB flagged areas. - -Prevents a lot of pointless hanging at boot on some devices. ---- - drivers/mmc/card/block.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/drivers/mmc/core/block.c b/drivers/mmc/core/block.c -index 4409d79..56df902 100644 ---- a/drivers/mmc/core/block.c -+++ b/drivers/mmc/core/block.c -@@ -2254,7 +2254,7 @@ static int mmc_blk_alloc_parts(struct mmc_card *card, struct mmc_blk_data *md) - return 0; - - for (idx = 0; idx < card->nr_parts; idx++) { -- if (card->part[idx].size) { -+ if (card->part[idx].size && !(card->part[idx].area_type & MMC_BLK_DATA_AREA_RPMB)) { - ret = mmc_blk_alloc_part(card, md, - card->part[idx].part_cfg, - card->part[idx].size >> 9, --- -1.7.10.4 -