Skip to content

mtd: spi-nor: Move cadence-qaudspi to spi-mem framework

Vignesh Raghavendra linux-mtd linux-spi lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest posting 2/28 patches 19 repliesIn review
  2. v3 posting 1/28 patches 5 repliesSuperseded
  3. v26 patches 9 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v16 patches3 repliesSuperseded

Changes in v3 from the cover letter

Split handling of probe deferral into separate patch (out of 5/6) Split dropping of redundant WREN to separate patch (out of 5/6) Fix a possible memleak due to lack of spi_master_put() Parse all SPI slave nodes in cqspi_setup_flash() Address misc comments from Tudor on v2
Rebase onto latest spi-nor/next

Patches in v3 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8mtd: spi-nor: cadence-quadspi: Make driver independent of flash geometrydrivers/mtd/spi-nor/controllers/cadence-quadspi.c+1 -350 replies
2/8mtd: spi-nor: cadence-quadspi: Provide a way to disable DAC modedrivers/mtd/spi-nor/controllers/cadence-quadspi.c+4 -10 replies
3/8mtd: spi-nor: cadence-quadspi: Don't initialize rx_dma_complete on failuredrivers/mtd/spi-nor/controllers/cadence-quadspi.c+1 -00 replies
4/8mtd: spi-nor: cadence-quadspi: Fix error path on failure to acquire reset linesdrivers/mtd/spi-nor/controllers/cadence-quadspi.c+4 -40 replies
5/8mtd: spi-nor: cadence-quadspi: Handle probe deferral while requesting DMA channeldrivers/mtd/spi-nor/controllers/cadence-quadspi.c+13 -59 replies
6/8mtd: spi-nor: cadence-quadspi: Drop redundant WREN in erase pathdrivers/mtd/spi-nor/controllers/cadence-quadspi.c+0 -50 replies
7/8mtd: spi-nor: Convert cadence-quadspi to use spi-mem frameworkdrivers/mtd/spi-nor/controllers/cadence-quadspi.c+191 -2855 replies
8/8spi: Move cadence-quadspi driver to drivers/spi/drivers/mtd/spi-nor/controllers/Kconfig drivers/mtd/spi-nor/controllers/Makefile drivers/spi/Kconfig +2 more+19 -190 replies

Reviews trailers per patch

All 8 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchTudor Ambarus
SeriesA-b
1/8R-b
2/8R-b
3/8R-b
4/8R-b
5/8R-b
6/8R-b
7/8R-b
8/8R-b

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

Read the v3 thread

Cover letter [RESEND PATCH v3 0/8] mtd: spi-nor: Move cadence-qaudspi to spi-mem framework

This series is a subset of "[PATCH v12 0/4] spi: cadence-quadspi: Add support for the Cadence QSPI controller" by Ramuthevar,Vadivel MuruganX <[email protected]> that intended to move cadence-quadspi driver to spi-mem framework

Those patches were trying to accomplish too many things in a single set of patches and need to split into smaller patches. This is reduced version of above series.

Changes that are intended to make migration easy are split into separate patches. Patches 1 to 3 drop features that cannot be supported under spi-mem at the moment (backward compatibility is maintained). Patch 4-5 are trivial cleanups. Patch 6 does the actual conversion to spi-mem and patch 7 moves the driver to drivers/spi folder.

I have tested both INDAC mode (used by non TI platforms like Altera SoCFPGA) and DAC mode (used by TI platforms) on TI EVMs.

Patches to move move bindings over to "Documentation/devicetree/bindings/spi/" directory and also conversion of bindig doc to YAML will be posted separately. Support for Intel platform would follow that.

Resend v3:
Rebased onto v5.7-c1

v3:
Split handling of probe deferral into separate patch (out of 5/6) Split dropping of redundant WREN to separate patch (out of 5/6) Fix a possible memleak due to lack of spi_master_put() Parse all SPI slave nodes in cqspi_setup_flash() Address misc comments from Tudor on v2
Rebase onto latest spi-nor/next

v2:
Rework patch 1/6 to keep "cdns,is-decoded-cs" property supported.

Ramuthevar Vadivel Murugan (2):
mtd: spi-nor: Convert cadence-quadspi to use spi-mem framework
spi: Move cadence-quadspi driver to drivers/spi/

Vignesh Raghavendra (6):
mtd: spi-nor: cadence-quadspi: Make driver independent of flash
geometry
mtd: spi-nor: cadence-quadspi: Provide a way to disable DAC mode
mtd: spi-nor: cadence-quadspi: Don't initialize rx_dma_complete on
failure
mtd: spi-nor: cadence-quadspi: Fix error path on failure to acquire
reset lines
mtd: spi-nor: cadence-quadspi: Handle probe deferral while requesting
DMA channel
mtd: spi-nor: cadence-quadspi: Drop redundant WREN in erase path

 drivers/mtd/spi-nor/controllers/Kconfig       |  11 -
 drivers/mtd/spi-nor/controllers/Makefile      |   1 -
 drivers/spi/Kconfig                           |  11 +
 drivers/spi/Makefile                          |   1 +
 .../spi-cadence-quadspi.c}                    | 541 +++++++-----------
 5 files changed, 222 insertions(+), 343 deletions(-)
 rename drivers/{mtd/spi-nor/controllers/cadence-quadspi.c => spi/spi-cadence-quadspi.c} (74%)
Signature · 1 line
2.26.2