Skip to content

spi: atmel: enhance the DMA handling

Nicolas Ferre linux-arm-kernel linux-spi lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5spi: atmel: trivial: move info banner to latest probe actiondrivers/spi/spi-atmel.c+4 -42 replies
2/5spi: atmel: Use core SPI_MASTER_MUST_[RT]X handlingdrivers/spi/spi-atmel.c+35 -961 reply
3/5spi: atmel: Use SPI core DMA mapping frameworkdrivers/spi/spi-atmel.c+25 -321 reply
4/5spi: atmel: trivial: remove unused fields in DMA structuredrivers/spi/spi-atmel.c+0 -41 reply
5/5spi: atmel: remove the use of private channel fieldsdrivers/spi/spi-atmel.c+43 -431 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] spi: atmel: enhance the DMA handling

Use the dummy buffer handling and DMA mapping core infrastructure to simplify spi-atmel driver.
By using these frameworks we also fix the use of any kind of memory with dmaengine. This work was triggered by issues encountered while using UBI/UBIFS on a serial flash.

Some good ideas of this series have been inspired by spi-rspi.c and commits by Geert Uytterhoeven.

I have a side question still: is the is_dma_mapped tag still used and considered into the core spi routines or is it always the driver itself that have to deal with it (so how to do with the can_dma() routine)?

Cyrille Pitchen (1):
spi: atmel: Use SPI core DMA mapping framework

Nicolas Ferre (4):
spi: atmel: trivial: move info banner to latest probe action
spi: atmel: Use core SPI_MASTER_MUST_[RT]X handling
spi: atmel: trivial: remove unused fields in DMA structure
spi: atmel: remove the use of private channel fields

 drivers/spi/spi-atmel.c | 268 ++++++++++++++++++------------------------------
 1 file changed, 98 insertions(+), 170 deletions(-)
Signature · 1 line
2.9.0