aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2022-02-16 21:25:13 +0100
committerFelix Fietkau <nbd@nbd.name>2022-02-16 21:29:10 +0100
commitbf0c965af0c8cb6b3b12466e55ad88e38fa08a53 (patch)
tree1691c5ac95c033f5cade3b8c35eb68a53078d4ae /target/linux
parentadb65008c859ebbe3b2c923ab11eba1d5f560e3e (diff)
downloadupstream-bf0c965af0c8cb6b3b12466e55ad88e38fa08a53.tar.gz
upstream-bf0c965af0c8cb6b3b12466e55ad88e38fa08a53.tar.bz2
upstream-bf0c965af0c8cb6b3b12466e55ad88e38fa08a53.zip
ramips: fix NAND flash driver ECC bit position mask
The bit position mask was accidentally made too wide, overlapping with the LSB from the byte position mask. This caused ECC calculation to fail for odd bytes Signed-off-by: Chad Monroe <chad.monroe@smartrg.com> Signed-off-by: Felix Fietkau <nbd@nbd.name> (cherry-picked from commit 918d4ab41ea34358c747aab5471bbb0a2a786dd8)
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ramips/patches-5.4/0300-mtd-rawnand-add-driver-support-for-MT7621-nand-flash.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ramips/patches-5.4/0300-mtd-rawnand-add-driver-support-for-MT7621-nand-flash.patch b/target/linux/ramips/patches-5.4/0300-mtd-rawnand-add-driver-support-for-MT7621-nand-flash.patch
index ba844fed0f..cca09cd706 100644
--- a/target/linux/ramips/patches-5.4/0300-mtd-rawnand-add-driver-support-for-MT7621-nand-flash.patch
+++ b/target/linux/ramips/patches-5.4/0300-mtd-rawnand-add-driver-support-for-MT7621-nand-flash.patch
@@ -233,7 +233,7 @@ Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
+#define DEC_EL_EVEN_S 0
+#define DEC_EL_M 0x1fff
+#define DEC_EL_BYTE_POS_S 3
-+#define DEC_EL_BIT_POS_M GENMASK(3, 0)
++#define DEC_EL_BIT_POS_M GENMASK(2, 0)
+
+#define ECC_FDMADDR 0x13c
+