[openwrt/openwrt] ramips: mt7621_nand: fix writing upper half of fdm data
LEDE Commits
lede-commits at lists.infradead.org
Thu Jan 13 11:13:52 PST 2022
nbd pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/3c78fabb0de1591489e63e429a7af794303f211b
commit 3c78fabb0de1591489e63e429a7af794303f211b
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Wed Jan 12 20:56:04 2022 +0100
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 at nbd.name>
---
.../410-mtd-rawnand-add-driver-support-for-MT7621-nand-flash.patch | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 at 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);
More information about the lede-commits
mailing list