Quellcode durchsuchen

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 <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
Felix Fietkau vor 4 Jahren
Ursprung
Commit
918d4ab41e

+ 1 - 1
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 <[email protected]>
 +#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
 +