mtd: rawnand: meson: fix scrambling mode value in command macro
Subsystems (5)
Stable branch Memory technology devices (MTD) Arm/Amlogic Meson SoC support NAND flash +1 more subsystems
PATCH 1/1 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 8fae856c5350 ("mtd: rawnand: meson: add support for Amlogic NAND flash controller")
--- drivers/mtd/nand/raw/meson_nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/nand/raw/meson_nand.c +1 -1
@@ -63,7 +63,7 @@#define CMDRWGEN (cmd_dir, ran, bch, short_mode, page_size, pages) \ ( \ (cmd_dir) | \ - ((ran) << 19) | \ + (ran) | \ ((bch) << 14) | \ ((short_mode) << 13) | \ (((page_size) & 0x7f) << 6) | \
Signature · 1 line
2.35.0
Quoted 7 lines · Arseniy Krasnov
Scrambling mode is enabled by value (1 << 19).
NFC_CMD_SCRAMBLER_ENABLEis 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 8fae856c5350 ("mtd: rawnand: meson: add support for Amlogic NAND flash controller")
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.
Miquel