[PATCH 0/2] Add error checking to spi-nor read and write

Michal Suchanek hramrach at gmail.com
Tue Jul 28 02:11:22 PDT 2015


Hello,

I am working with half-broken SPI drivers which sometimes fail and spi-nor
completely ignores that leading to silent data corruption.

With these patches I get actual I/O errors when something fails.

Testing on different hardware would be appreciated, especially fsl-qspi.

I don't recall any comment on these patches so I am resending them separately.

Thanks

Michal

Michal Suchanek (2):
  mtd: spi-nor: rework spi nor read and write.
  mtd: spi-nor: rework write loop

 drivers/mtd/devices/m25p80.c      | 33 ++++++++++------
 drivers/mtd/spi-nor/fsl-quadspi.c | 29 +++++++-------
 drivers/mtd/spi-nor/spi-nor.c     | 79 +++++++++++++++++++++------------------
 include/linux/mtd/spi-nor.h       |  8 ++--
 4 files changed, 83 insertions(+), 66 deletions(-)

-- 
2.1.4




More information about the linux-mtd mailing list