Skip to content

Commit ef6f463

Browse files
Arseniy Krasnovmiquelraynal
authored andcommitted
mtd: rawnand: meson: fix scrambling mode value in command macro
Scrambling mode is enabled by value (1 << 19). NFC_CMD_SCRAMBLER_ENABLE is already (1 << 19), so there is no need to shift it again in CMDRWGEN macro. Signed-off-by: Arseniy Krasnov <[email protected]> Cc: <[email protected]> Fixes: 8fae856 ("mtd: rawnand: meson: add support for Amlogic NAND flash controller") Signed-off-by: Miquel Raynal <[email protected]> Link: https://lore.kernel.org/linux-mtd/[email protected]
1 parent 9367043 commit ef6f463

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mtd/nand/raw/meson_nand.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
#define CMDRWGEN(cmd_dir, ran, bch, short_mode, page_size, pages) \
6464
( \
6565
(cmd_dir) | \
66-
((ran) << 19) | \
66+
(ran) | \
6767
((bch) << 14) | \
6868
((short_mode) << 13) | \
6969
(((page_size) & 0x7f) << 6) | \

0 commit comments

Comments
 (0)