linux/drivers/mtd/nand/spi
Boris Brezillon 13c15e07ee mtd: spinand: Handle the case where PROGRAM LOAD does not reset the cache
Looks like PROGRAM LOAD (AKA write cache) does not necessarily reset
the cache content to 0xFF (depends on vendor implementation), so we
must fill the page cache entirely even if we only want to program the
data portion of the page, otherwise we might corrupt the BBM or user
data previously programmed in OOB area.

Fixes: 7529df4652 ("mtd: nand: Add core infrastructure to support SPI NANDs")
Reported-by: Stefan Roese <sr@denx.de>
Cc: <stable@vger.kernel.org>
Signed-off-by: Boris Brezillon <bbrezillon@kernel.org>
Tested-by: Stefan Roese <sr@denx.de>
Reviewed-by: Stefan Roese <sr@denx.de>
Acked-by: Miquel Raynal <miquel.raynal@bootlin.com>
2019-01-31 12:30:51 +01:00
..
core.c mtd: spinand: Handle the case where PROGRAM LOAD does not reset the cache 2019-01-31 12:30:51 +01:00
gigadevice.c mtd: spinand: add support for GigaDevice GD5FxGQ4xA 2018-12-07 10:59:23 +01:00
Kconfig
macronix.c mtd: spinand: macronix: Add support for MX35LF2GE4AB 2018-07-18 09:24:12 +02:00
Makefile mtd: spinand: add support for GigaDevice GD5FxGQ4xA 2018-12-07 10:59:23 +01:00
micron.c
toshiba.c mtd: spinand: Add initial support for Toshiba TC58CVG2S0H 2018-12-07 10:38:23 +01:00
winbond.c mtd: spinand: winbond: Add support for W25N01GV 2018-11-05 10:56:56 +01:00