linux/drivers/mtd/spi-nor
Tudor Ambarus 82de6a6fb6 mtd: spi-nor: Fix the writing of the Status Register on micron flashes
Micron flashes do not support 16 bit writes on the Status Register.
According to micron datasheets, when using the Write Status Register
(01h) command, the chip select should be driven LOW and held LOW until
the eighth bit of the last data byte has been latched in, after which
it must be driven HIGH. If CS is not driven HIGH, the command is not
executed, flag status register error bits are not set, and the write enable
latch remains set to 1. This fixes the lock operations on micron flashes.

Reported-by: John Garry <john.garry@huawei.com>
Fixes: 39d1e3340c ("mtd: spi-nor: Fix clearing of QE bit on lock()/unlock()")
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Tested-by: John Garry <john.garry@huawei.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
2020-01-09 20:11:34 +01:00
..
aspeed-smc.c mtd: spi-nor: Introduce 'struct spi_nor_controller_ops' 2019-10-23 09:27:21 +03:00
cadence-quadspi.c SPI NOR core changes: 2019-11-17 18:34:01 +01:00
hisi-sfc.c mtd: spi-nor: Introduce 'struct spi_nor_controller_ops' 2019-10-23 09:27:21 +03:00
intel-spi-pci.c mtd: spi-nor: intel-spi: Add support for Intel Comet Lake-H SPI serial flash 2019-11-02 12:16:36 +02:00
intel-spi-platform.c mtd: spi-nor: intel-spi: Convert to use SPDX identifier 2019-06-22 14:59:27 +03:00
intel-spi.c mtd: spi-nor: Introduce 'struct spi_nor_controller_ops' 2019-10-23 09:27:21 +03:00
intel-spi.h mtd: spi-nor: intel-spi: Convert to use SPDX identifier 2019-06-22 14:59:27 +03:00
Kconfig mtd: spi-nor: Move m25p80 code in spi-nor.c 2019-08-12 10:54:12 +03:00
Makefile mtd: spi-nor: stm32: remove the driver as it was replaced by spi-stm32-qspi.c 2019-06-07 07:10:38 +03:00
mtk-quadspi.c mtd: spi-nor: Introduce 'struct spi_nor_controller_ops' 2019-10-23 09:27:21 +03:00
nxp-spifi.c mtd: spi-nor: Introduce 'struct spi_nor_controller_ops' 2019-10-23 09:27:21 +03:00
spi-nor.c mtd: spi-nor: Fix the writing of the Status Register on micron flashes 2020-01-09 20:11:34 +01:00