Commit 40b7d5c
committed
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>1 parent b0db77f commit 40b7d5c
1 file changed
+4
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
960 | 960 | | |
961 | 961 | | |
962 | 962 | | |
963 | | - | |
964 | | - | |
| 963 | + | |
965 | 964 | | |
966 | 965 | | |
967 | 966 | | |
| |||
975 | 974 | | |
976 | 975 | | |
977 | 976 | | |
978 | | - | |
| 977 | + | |
979 | 978 | | |
980 | 979 | | |
981 | 980 | | |
| |||
1774 | 1773 | | |
1775 | 1774 | | |
1776 | 1775 | | |
1777 | | - | |
| 1776 | + | |
1778 | 1777 | | |
1779 | 1778 | | |
1780 | 1779 | | |
| |||
1859 | 1858 | | |
1860 | 1859 | | |
1861 | 1860 | | |
1862 | | - | |
| 1861 | + | |
1863 | 1862 | | |
1864 | 1863 | | |
1865 | 1864 | | |
| |||
0 commit comments