Skip to content

spi: introduce max message size and use it in the fsl-espi driver

Heiner Kallweit linux-mtd linux-spi 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3spi: introduce max message size flag in spi_masterinclude/linux/spi/spi.h+4 -022 replies
2/3mtd: m25p80: consider max message size in m25p80_readdrivers/mtd/devices/m25p80.c+6 -10 replies
3/3spi: fsl-espi: eliminate spi nor flash read loopdrivers/spi/spi-fsl-espi.c+20 -680 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchCyrille Pitchen
1/3R-b
2/3
3/3

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

Read the v1 thread

Cover letter [PATCH 0/3] spi: introduce max message size and use it in the fsl-espi driver

Recently a maximum transfer size was was introduced in struct spi_master. However there are also spi controllers with a maximum message size, e.g. fsl-espi has a max message size of 64KB.
As there are no (known) spi controller with differing size limits for transfer and message, introduce a flag in spi_master to indicate that the max transfer size is also the maximum message size.

Then use this flag in the m25p80 driver to calculate proper read chunks for such controllers.

Eventually this new feature allows to significantly simplify the fsl-espi driver.

Heiner Kallweit (3):
spi: introduce max message size flag in spi_master
mtd: m25p80: consider max message size in m25p80_read
spi: fsl-espi: eliminate spi nor flash read loop

 drivers/mtd/devices/m25p80.c |  7 +++-
 drivers/spi/spi-fsl-espi.c   | 88 ++++++++++----------------------------------
 include/linux/spi/spi.h      |  4 ++
 3 files changed, 30 insertions(+), 69 deletions(-)
Signature · 6 lines
2.9.2

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html