ramips: fix NAND flash driver ECC bit position mask
authorFelix Fietkau <nbd@nbd.name>
Wed, 16 Feb 2022 20:25:13 +0000 (21:25 +0100)
committerFelix Fietkau <nbd@nbd.name>
Wed, 16 Feb 2022 20:29:10 +0000 (21:29 +0100)
commitbf0c965af0c8cb6b3b12466e55ad88e38fa08a53
tree1691c5ac95c033f5cade3b8c35eb68a53078d4ae
parentadb65008c859ebbe3b2c923ab11eba1d5f560e3e
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)
target/linux/ramips/patches-5.4/0300-mtd-rawnand-add-driver-support-for-MT7621-nand-flash.patch