OSDN Git Service

mtd: spi-nor: Fix quad enable for Spansion like flashes
authorMichael Walle <michael@walle.cc>
Thu, 16 Jan 2020 09:37:00 +0000 (10:37 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 17 Jan 2020 21:45:05 +0000 (22:45 +0100)
commitda2ef8124f20b4ce18d1d3d24fc7b88e687e10bb
treea436e99d9d264150d2d64a170d2653aa23c4211f
parent440b6d50254bdbd84c2a665c7f53ec69dd741a4f
mtd: spi-nor: Fix quad enable for Spansion like flashes

The commit 7b678c69c0ca ("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: 7b678c69c0ca ("mtd: spi-nor: Merge spansion Quad Enable methods")
Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/spi-nor/spi-nor.c