Skip to content

Commit 7866ce9

Browse files
committed
mtd: spinand: winbond: Declare the QE bit on W25NxxJW
Factory default for this bit is "set" (at least on the chips I have), but we must make sure it is actually set by Linux explicitly, as the bit is writable by an earlier stage. Fixes: 6a804fb ("mtd: spinand: winbond: add support for serial NAND flash") Cc: stable@vger.kernel.org Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
1 parent 3b2a422 commit 7866ce9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/mtd/nand/spi/winbond.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ static const struct spinand_info winbond_spinand_table[] = {
488488
SPINAND_INFO_OP_VARIANTS(&read_cache_dual_quad_dtr_variants,
489489
&write_cache_variants,
490490
&update_cache_variants),
491-
0,
491+
SPINAND_HAS_QE_BIT,
492492
SPINAND_ECCINFO(&w25n01jw_ooblayout, NULL),
493493
SPINAND_CONFIGURE_CHIP(w25n0xjw_hs_cfg)),
494494
SPINAND_INFO("W25N01KV", /* 3.3V */
@@ -552,7 +552,7 @@ static const struct spinand_info winbond_spinand_table[] = {
552552
SPINAND_INFO_OP_VARIANTS(&read_cache_dual_quad_dtr_variants,
553553
&write_cache_variants,
554554
&update_cache_variants),
555-
0,
555+
SPINAND_HAS_QE_BIT,
556556
SPINAND_ECCINFO(&w25m02gv_ooblayout, NULL),
557557
SPINAND_CONFIGURE_CHIP(w25n0xjw_hs_cfg)),
558558
SPINAND_INFO("W25N02KV", /* 3.3V */

0 commit comments

Comments
 (0)