0e1cd4edef
[ Upstream commit 70dd83d737d8900b2d98db6dc6b928c596334d37 ]
Read back Status Register 1 to ensure that the written byte match the
received value and return -EIO if read back test failed.
Without this patch, spi_nor_write_16bit_sr_and_check() only check the
second half of the 16bit. It causes errors like spi_nor_sr_unlock()
return success incorrectly when spi_nor_write_16bit_sr_and_check()
doesn't write SR successfully.
Fixes:
|
||
---|---|---|
.. | ||
controllers | ||
atmel.c | ||
catalyst.c | ||
core.c | ||
core.h | ||
eon.c | ||
esmt.c | ||
everspin.c | ||
fujitsu.c | ||
gigadevice.c | ||
intel.c | ||
issi.c | ||
Kconfig | ||
macronix.c | ||
Makefile | ||
micron-st.c | ||
sfdp.c | ||
sfdp.h | ||
spansion.c | ||
sst.c | ||
winbond.c | ||
xilinx.c | ||
xmc.c |