diff options
author | Felix Fietkau <nbd@nbd.name> | 2022-01-12 20:56:04 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2022-01-13 18:33:06 +0100 |
commit | 3c78fabb0de1591489e63e429a7af794303f211b (patch) | |
tree | 149d9c3ede8a8c8ce9b6d7b1a4873fbf84df5092 /target | |
parent | 76b27f6bb92eec4a25001da8d8188d30440eafd9 (diff) | |
download | upstream-3c78fabb0de1591489e63e429a7af794303f211b.tar.gz upstream-3c78fabb0de1591489e63e429a7af794303f211b.tar.bz2 upstream-3c78fabb0de1591489e63e429a7af794303f211b.zip |
ramips: mt7621_nand: fix writing upper half of fdm data
Since the loop iterates from 0-3, subtracting 4 from the shift
multiplier does not make any sense
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target')
-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 a37426edec..8049dbde14 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 @@ -1022,7 +1022,7 @@ Signed-off-by: Weijie Gao <weijie.gao@mediatek.com> + vall |= (u32)oobptr[j] << (j * 8); + + for (j = 0; j < 4; j++) -+ valm |= (u32)oobptr[j + 4] << ((j - 4) * 8); ++ valm |= (u32)oobptr[j + 4] << (j * 8); + + nfi_write32(nfc, NFI_FDML(i), vall); + nfi_write32(nfc, NFI_FDMM(i), valm); |