Skip to content
Snippets Groups Projects
Commit 3c78fabb authored by Felix Fietkau's avatar Felix Fietkau
Browse files

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: default avatarFelix Fietkau <nbd@nbd.name>
parent 76b27f6b
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment