[PATCH v2 0/6] fix error checking in spi-nor read and write functions

Michal Suchanek hramrach at gmail.com
Mon Aug 3 11:28:20 PDT 2015


Hello,

This is update of the spi-nor patchset that implements error checking in SPI
transfers.

It's been pointed out that the first patch is too big so I split it into
smaller incremental patches.

With these patches writing to NOR flash connected to a SPI controller with
transfer size limitation should work properly.

Also when a transfer fails it should be now reported all the way to the
userspace rather than silently ignored.

Thanks

Michal

Michal Suchanek (6):
  mtd: spi-nor: change return value of read/write
  mtd: m25p80: Add read/write error check and return
  mtd: fsl-quadspi: update read/write function prototype
  mtd: spi-nor: check return value from read/write
  mtd: spi-nor: stop passing around retlen
  mtd: spi-nor: simplify 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, 84 insertions(+), 65 deletions(-)

-- 
2.1.4




More information about the linux-mtd mailing list