diff options
author | Felix Fietkau <nbd@nbd.name> | 2022-02-16 21:25:13 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2022-02-16 21:26:27 +0100 |
commit | 918d4ab41ea34358c747aab5471bbb0a2a786dd8 (patch) | |
tree | bf66df76f04aabc52df14a64013943927d3f1c9c /target/linux/ramips | |
parent | dabc78b644c0fb8f17ff5456f6cb92e78b53f248 (diff) | |
download | upstream-918d4ab41ea34358c747aab5471bbb0a2a786dd8.tar.gz upstream-918d4ab41ea34358c747aab5471bbb0a2a786dd8.tar.bz2 upstream-918d4ab41ea34358c747aab5471bbb0a2a786dd8.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>
Diffstat (limited to 'target/linux/ramips')
-rw-r--r-- | target/linux/ramips/patches-5.10/410-mtd-rawnand-add-driver-support-for-MT7621-nand-flash.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ramips/patches-5.10/410-mtd-rawnand-add-driver-support-for-MT7621-nand-flash.patch b/target/linux/ramips/patches-5.10/410-mtd-rawnand-add-driver-support-for-MT7621-nand-flash.patch index 8049dbde14..3314013420 100644 --- a/target/linux/ramips/patches-5.10/410-mtd-rawnand-add-driver-support-for-MT7621-nand-flash.patch +++ b/target/linux/ramips/patches-5.10/410-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 + |