]> asedeno.scripts.mit.edu Git - linux.git/commit
mtd: spi-nor: Check all the bits written, not just the BP ones
authorTudor Ambarus <tudor.ambarus@microchip.com>
Sat, 2 Nov 2019 11:23:43 +0000 (11:23 +0000)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Thu, 7 Nov 2019 06:18:28 +0000 (08:18 +0200)
commit40b7d5cccc59e1e69db8121400d367c37aecac17
treedf739a617510d6bf836b18d4883991fbcc2c3c75
parentb0db77f5aa0313561420c49acee66e94b33be6b6
mtd: spi-nor: Check all the bits written, not just the BP ones

Check that all the bits written in the write_sr_and_check() method
match the status_new received value. Failing to write the other bits
is dangerous too, extend the check.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Vignesh Raghavendra <vigneshr@ti.com>
drivers/mtd/spi-nor/spi-nor.c