On 24.01.19 15:20, Boris Brezillon wrote:
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: 7529df465248 ("mtd: nand: Add core infrastructure to support SPI NANDs") Reported-by: Stefan Roese <sr@xxxxxxx> Cc: <stable@xxxxxxxxxxxxxxx> Signed-off-by: Boris Brezillon <bbrezillon@xxxxxxxxxx>
Works fine (limited testing only yet), so: Tested-by: Stefan Roese <sr@xxxxxxx> Reviewed-by: Stefan Roese <sr@xxxxxxx> Thanks, Stefan