mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-03-06 04:40:34 +01:00
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 918d4ab41e)
This commit is contained in:
parent
adb65008c8
commit
bf0c965af0
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
+
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue