Skip to content

spi: Extend the framework to generically support memory devices

Boris Brezillon linux-mtd linux-spi 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest7 patches 11 repliesIn review
  2. v39 patches 12 repliesSuperseded
  3. v210 patches 19 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v1 RFC6 patches42 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7spi: Extend the core to ease integration of SPI memory controllersdrivers/spi/Kconfig drivers/spi/Makefile drivers/spi/spi-mem.c +2 more+674 -01 reply
2/7spi: Make support for regular transfers optional when ->mem_ops != NULLdrivers/spi/spi.c+26 -71 reply
3/7spi: bcm-qspi: Implement the spi_mem interfacedrivers/spi/spi-bcm-qspi.c+111 -790 replies
4/7spi: bcm53xx: Implement the spi_mem interfacedrivers/spi/spi-bcm53xx.c+36 -10 replies
5/7spi: ti-qspi: Implement the spi_mem interfacedrivers/spi/spi-ti-qspi.c+71 -132 replies
6/7mtd: spi-nor: Use the spi_mem_xx() APIdrivers/mtd/devices/Kconfig drivers/mtd/devices/m25p80.c+80 -1575 replies
7/7spi: Get rid of the spi_flash_read() APIdrivers/spi/spi-bcm-qspi.c drivers/spi/spi-bcm53xx.c drivers/spi/spi-ti-qspi.c +2 more+4 -2011 reply

Reviews trailers per patch

6 of 7 patches have a Reviewed-by or Acked-by.

PatchKamal DasuVignesh RFrieder Schrempf
1/7R-b T-b
2/7R-b T-b
3/7R-b T-b
4/7
5/7R-b T-b R-b T-b
6/7R-b T-b
7/7R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v4 thread

Cover letter [PATCH v4 0/7] spi: Extend the framework to generically support memory devices

Hello,

Shrinking a bit the explanation on why the spi-mem abstraction is needed (a detailed explanation is available here [2]). In addition to what as been said in my initial explanation I'll add that making it part of the SPI framework instead of as an extra independent layer is justified by the fact that some controllers support both SPI memory operations and regular SPI transfers, and it's cleaner to have both features exposed through a single driver.

For those who want to have the full picture, here is a branch [1] containing the SPI NAND framework based on top of this spi-mem layer.

Thanks,

Boris

[1]https://github.com/bbrezillon/linux/tree/spi-mem [2]https://www.spinics.net/lists/linux-spi/msg12058.html

Boris Brezillon (7):
spi: Extend the core to ease integration of SPI memory controllers
spi: Make support for regular transfers optional when ->mem_ops !=
NULL
spi: bcm-qspi: Implement the spi_mem interface
spi: bcm53xx: Implement the spi_mem interface
spi: ti-qspi: Implement the spi_mem interface
mtd: spi-nor: Use the spi_mem_xx() API
spi: Get rid of the spi_flash_read() API

 drivers/mtd/devices/Kconfig  |   1 +
 drivers/mtd/devices/m25p80.c | 236 +++++++++----------------
 drivers/spi/Kconfig          |   7 +
 drivers/spi/Makefile         |   1 +
 drivers/spi/spi-bcm-qspi.c   | 162 ++++++++---------
 drivers/spi/spi-bcm53xx.c    |  37 ++--
 drivers/spi/spi-mem.c        | 410 +++++++++++++++++++++++++++++++++++++++++++
 drivers/spi/spi-ti-qspi.c    |  85 +++++----
 drivers/spi/spi.c            |  90 +++-------
 include/linux/spi/spi-mem.h  | 249 ++++++++++++++++++++++++++
 include/linux/spi/spi.h      |  60 +------
 11 files changed, 941 insertions(+), 397 deletions(-)
 create mode 100644 drivers/spi/spi-mem.c
 create mode 100644 include/linux/spi/spi-mem.h
Signature · 6 lines
2.14.1


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/