Skip to content

Commit da2ef81

Browse files
mwallemiquelraynal
authored andcommitted
mtd: spi-nor: Fix quad enable for Spansion like flashes
The commit 7b678c6 ("mtd: spi-nor: Merge spansion Quad Enable methods") forgot to actually set the QE bit in some cases. Thus this breaks quad mode accesses to flashes which support readback of the status register-2. Fix it. Fixes: 7b678c6 ("mtd: spi-nor: Merge spansion Quad Enable methods") Signed-off-by: Michael Walle <[email protected]> Reviewed-by: Tudor Ambarus <[email protected]> Signed-off-by: Miquel Raynal <[email protected]>
1 parent 440b6d5 commit da2ef81

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/mtd/spi-nor/spi-nor.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2124,6 +2124,8 @@ static int spi_nor_sr2_bit1_quad_enable(struct spi_nor *nor)
21242124
if (nor->bouncebuf[0] & SR2_QUAD_EN_BIT1)
21252125
return 0;
21262126

2127+
nor->bouncebuf[0] |= SR2_QUAD_EN_BIT1;
2128+
21272129
return spi_nor_write_16bit_cr_and_check(nor, nor->bouncebuf[0]);
21282130
}
21292131

0 commit comments

Comments
 (0)