Skip to content

spi: Rework DMA mapped flag

Andy Shevchenko linux-arm-kernel linux-arm-msm linux-spi lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8spi: Introduce internal spi_xfer_is_dma_mapped() helperdrivers/spi/internals.h+8 -01 reply
2/8spi: dw: Use new spi_xfer_is_dma_mapped() helperdrivers/spi/spi-dw-core.c+2 -21 reply
3/8spi: ingenic: Use new spi_xfer_is_dma_mapped() helperdrivers/spi/spi-ingenic.c+2 -20 replies
4/8spi: omap2-mcspi: Use new spi_xfer_is_dma_mapped() helperdrivers/spi/spi-omap2-mcspi.c+4 -40 replies
5/8spi: pxa2xx: Use new spi_xfer_is_dma_mapped() helperdrivers/spi/spi-pxa2xx.c+2 -42 replies
6/8spi: pci1xxxx: Use new spi_xfer_is_dma_mapped() helperdrivers/spi/spi-pci1xxxx.c+3 -20 replies
7/8spi: qup: Use new spi_xfer_is_dma_mapped() helperdrivers/spi/spi-qup.c+4 -51 reply
8/8spi: Rework per message DMA mapped flag to be per transferdrivers/spi/internals.h drivers/spi/spi.c include/linux/spi/spi.h+35 -510 replies

Reviews trailers per patch

3 of 8 patches have a Reviewed-by or Acked-by.

PatchSerge SeminNeil ArmstrongNícolas F. R. A. PradoBryan O'Donoghue
SeriesT-b T-b
1/8R-b
2/8R-b
3/8
4/8
5/8
6/8
7/8R-b
8/8

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

Read the v1 thread

Cover letter [PATCH v1 0/8] spi: Rework DMA mapped flag

The first part of the series (patches 1 to 7) is an introduction of a new helper followed by the user conversion.

This consolidates the same code and also makes patch 8 (last one) be localised to the SPI core part.

The last patch is the main rework to get rid of a recently introduced hack with a dummy SG list and move to the transfer-based DMA mapped flag.

That said, the patches 1 to 7 may be applied right away since they have no functional change intended, while the last one needs more testing and reviewing.

Andy Shevchenko (8):
spi: Introduce internal spi_xfer_is_dma_mapped() helper
spi: dw: Use new spi_xfer_is_dma_mapped() helper
spi: ingenic: Use new spi_xfer_is_dma_mapped() helper
spi: omap2-mcspi: Use new spi_xfer_is_dma_mapped() helper
spi: pxa2xx: Use new spi_xfer_is_dma_mapped() helper
spi: pci1xxxx: Use new spi_xfer_is_dma_mapped() helper
spi: qup: Use new spi_xfer_is_dma_mapped() helper
spi: Rework per message DMA mapped flag to be per transfer

 drivers/spi/internals.h       |  8 ++++
 drivers/spi/spi-dw-core.c     |  4 +-
 drivers/spi/spi-ingenic.c     |  4 +-
 drivers/spi/spi-omap2-mcspi.c |  8 ++--
 drivers/spi/spi-pci1xxxx.c    |  5 ++-
 drivers/spi/spi-pxa2xx.c      |  6 +--
 drivers/spi/spi-qup.c         |  9 ++---
 drivers/spi/spi.c             | 73 +++++++++++++----------------------
 include/linux/spi/spi.h       | 11 ++++--
 9 files changed, 59 insertions(+), 69 deletions(-)
Signature · 1 line
2.43.0.rc1.1336.g36b5255a03ac