diff options
author | Mason Yang <masonccyang@mxic.com.tw> | 2021-12-16 12:16:37 +0100 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2022-01-23 12:36:22 +0100 |
commit | 1d46963d453770ac68d954e61f094eba6e42744f (patch) | |
tree | 69eaa5b1aa66dc962dd5b909d5e539dafa572dd8 | |
parent | 3e2bcda631d4e612a8cd69613a15fae2f9941857 (diff) | |
download | linux-stable-1d46963d453770ac68d954e61f094eba6e42744f.tar.gz linux-stable-1d46963d453770ac68d954e61f094eba6e42744f.tar.bz2 linux-stable-1d46963d453770ac68d954e61f094eba6e42744f.zip |
mtd: spinand: macronix: Use random program load
Macronix SPI-NAND chips might benefit from an external ECC
engine. Such an engine might need to access random columns, thus needing
to use random commands (0x84 instead of 0x02).
Signed-off-by: Mason Yang <masonccyang@mxic.com.tw>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20211216111654.238086-12-miquel.raynal@bootlin.com
-rw-r--r-- | drivers/mtd/nand/spi/macronix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/spi/macronix.c b/drivers/mtd/nand/spi/macronix.c index 3f31f1381a62..dce835132a1e 100644 --- a/drivers/mtd/nand/spi/macronix.c +++ b/drivers/mtd/nand/spi/macronix.c @@ -20,7 +20,7 @@ static SPINAND_OP_VARIANTS(read_cache_variants, static SPINAND_OP_VARIANTS(write_cache_variants, SPINAND_PROG_LOAD_X4(true, 0, NULL, 0), - SPINAND_PROG_LOAD(true, 0, NULL, 0)); + SPINAND_PROG_LOAD(false, 0, NULL, 0)); static SPINAND_OP_VARIANTS(update_cache_variants, SPINAND_PROG_LOAD_X4(false, 0, NULL, 0), |