[PATCH v3 0/6] Add error checking in spi-nor read and write

Michal Suchanek hramrach at gmail.com
Fri Aug 7 13:01:31 PDT 2015


Hello,

this is patchset which implements checking for SPI transfer errors in spi-nor.

With this you get an error rather than bunch of zeroes when a transfer fails
and you get correct operation on SPI controllers that truncate long transfers.

Since the only comment to the patchset was that it introduces a warning when
all patches are not applied I resend with this issue fixed.

Thanks

Michal

Michal Suchanek (6):
  mtd: spi-nor: change return value of read/write
  mtd: m25p80: return amount of data transferred or error in read/write
  mtd: fsl-quadspi: return amount of data read/written or error
  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