-
由 Boris Brezillon 提交于
commit 13c15e07eedf26092054c8c71f2f47edb8388310 upstream. 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: NStefan Roese <sr@denx.de> Cc: <stable@vger.kernel.org> Signed-off-by: NBoris Brezillon <bbrezillon@kernel.org> Tested-by: NStefan Roese <sr@denx.de> Reviewed-by: NStefan Roese <sr@denx.de> Acked-by: NMiquel Raynal <miquel.raynal@bootlin.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
b3ce7757