Skip to content
Commit 13c15e07 authored by Boris Brezillon's avatar Boris Brezillon
Browse files

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: 7529df46 ("mtd: nand: Add core infrastructure to support SPI NANDs")
Reported-by: default avatarStefan Roese <sr@denx.de>
Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarBoris Brezillon <bbrezillon@kernel.org>
Tested-by: default avatarStefan Roese <sr@denx.de>
Reviewed-by: default avatarStefan Roese <sr@denx.de>
Acked-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
parent 49a57857
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment