aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/patches-5.4/450-fix-block-protection-clearing.patch
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2021-12-21 22:00:34 +0100
committerDavid Bauer <mail@david-bauer.net>2021-12-27 03:13:36 +0100
commit9d9d851eec7da1b9b2c161562c58d81e4e72b77c (patch)
tree011df2b1fda2dfb56ee9736992ebb9742751c16b /target/linux/ath79/patches-5.4/450-fix-block-protection-clearing.patch
parent5ca77934180ea277520be0dbbe7d47c47eec2375 (diff)
downloadupstream-9d9d851eec7da1b9b2c161562c58d81e4e72b77c.tar.gz
upstream-9d9d851eec7da1b9b2c161562c58d81e4e72b77c.tar.bz2
upstream-9d9d851eec7da1b9b2c161562c58d81e4e72b77c.zip
ath79: remove kernel 5.4
Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'target/linux/ath79/patches-5.4/450-fix-block-protection-clearing.patch')
-rw-r--r--target/linux/ath79/patches-5.4/450-fix-block-protection-clearing.patch28
1 files changed, 0 insertions, 28 deletions
diff --git a/target/linux/ath79/patches-5.4/450-fix-block-protection-clearing.patch b/target/linux/ath79/patches-5.4/450-fix-block-protection-clearing.patch
deleted file mode 100644
index 863f9ddd70..0000000000
--- a/target/linux/ath79/patches-5.4/450-fix-block-protection-clearing.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-From: Nick Hainke <vincent@systemli.org>
-Date: Sun, 25 Oct 2020 00:52:47 +0200
-Subject: [PATCH] ath79: fix block protection clearing
-
-The block protection bits of macronix do not match the implementation.
-The chip has 3 BP bits. Bit 5 is actually the third BP but here the
-5th bit is SR_TB. Therefore the patch adds SR_TB to the mask. In the
-4.19er kernel the whole register was simply set to 0.
-
-The wrong implementation did not remove the block protection. This led
-to jffs2 errors in the form of:
-"jffs2: Newly-erased block contained word 0x19852003 at offset 0x..."
-This caused inconsistent memory and other errors.
-
-Suggested-by: David Bauer <mail@david-bauer.net>
-Signed-off-by: Nick Hainke <vincent@systemli.org>
-
---- a/drivers/mtd/spi-nor/spi-nor.c
-+++ b/drivers/mtd/spi-nor/spi-nor.c
-@@ -1987,7 +1987,7 @@ static int sr2_bit7_quad_enable(struct s
- static int spi_nor_clear_sr_bp(struct spi_nor *nor)
- {
- int ret;
-- u8 mask = SR_BP2 | SR_BP1 | SR_BP0;
-+ u8 mask = SR_TB | SR_BP2 | SR_BP1 | SR_BP0;
-
- if (nor->flags & SNOR_F_HAS_4BIT_BP)
- mask |= SR_BP3;