Skip to content

Add error checking to spi-nor read and write

Brian Norris linux-mtd lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v7 Latest10 patches 5 repliesIn review

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10mtd: spi-nor: change return value of read/writedrivers/mtd/devices/m25p80.c drivers/mtd/spi-nor/fsl-quadspi.c drivers/mtd/spi-nor/mtk-quadspi.c +3 more+36 -210 replies
2/10mtd: m25p80: return amount of data transferred or error in read/writedrivers/mtd/devices/m25p80.c+21 -80 replies
3/10mtd: fsl-quadspi: return amount of data read/written or errordrivers/mtd/spi-nor/fsl-quadspi.c+11 -60 replies
4/10mtd: mtk-quadspi: return amount of data transferred or error in read/writedrivers/mtd/spi-nor/mtk-quadspi.c+7 -70 replies
5/10mtd: nxp-spifi: return amount of data transferred or error in read/writedrivers/mtd/spi-nor/nxp-spifi.c+9 -40 replies
6/10mtd: spi-nor: check return value from writedrivers/mtd/spi-nor/spi-nor.c+32 -130 replies
7/10mtd: spi-nor: stop passing around retlendrivers/mtd/devices/m25p80.c drivers/mtd/spi-nor/fsl-quadspi.c drivers/mtd/spi-nor/mtk-quadspi.c +3 more+28 -350 replies
8/10mtd: spi-nor: simplify write loopdrivers/mtd/spi-nor/spi-nor.c+25 -330 replies
9/10mtd: spi-nor: add read loopdrivers/mtd/spi-nor/spi-nor.c+19 -60 replies
10/10mtd: m25p80: read in spi_max_transfer_size chunksdrivers/mtd/devices/m25p80.c+1 -10 replies

Reviews trailers per patch

None of the 10 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMichal Suchanek
SeriesA-b T-b
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v7 thread

Cover letter [PATCH v7 00/10] Add error checking to spi-nor read and write

Hi,

I'm picking up Michal's patch set, since he dropped it on the floor, and it's useful for others. My additions:

* rebased on latest
* added fixes for drivers that have been merged in the meantime
* addressed most of Heiner's comments

I've put some v6->v7 change info in the patch descriptions as well.

Tested on m25p80 only.

Regards,
Brian
Brian Norris (2):
mtd: mtk-quadspi: return amount of data transferred or error in
read/write
mtd: nxp-spifi: return amount of data transferred or error in
read/write

Michal Suchanek (8):
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 write
mtd: spi-nor: stop passing around retlen
mtd: spi-nor: simplify write loop
mtd: spi-nor: add read loop
mtd: m25p80: read in spi_max_transfer_size chunks

 drivers/mtd/devices/m25p80.c      |  37 +++++++++-----
 drivers/mtd/spi-nor/fsl-quadspi.c |  29 +++++------
 drivers/mtd/spi-nor/mtk-quadspi.c |  42 +++++++++-------
 drivers/mtd/spi-nor/nxp-spifi.c   |  25 +++++-----
 drivers/mtd/spi-nor/spi-nor.c     | 100 +++++++++++++++++++++++++-------------
 include/linux/mtd/spi-nor.h       |   8 +--
 6 files changed, 148 insertions(+), 93 deletions(-)
Signature · 1 line
2.8.0.rc3.226.g39d4020