mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-18 18:56:37 +00:00
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>
This commit is contained in:
parent
76b27f6bb9
commit
3c78fabb0d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user