Skip to content

spi-ti-qspi: Handle vmalloc'd buffers

Vignesh R linux-omap linux-spi lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 6 repliesIn review
  2. v12 patches 2 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2spi: Add can_dma like interface for spi_flash_readdrivers/spi/spi.c include/linux/spi/spi.h+5 -10 replies
2/2spi: spi-ti-qspi: Use bounce buffer if read buffer is not DMA'bledrivers/spi/spi-ti-qspi.c+59 -76 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/2] spi-ti-qspi: Handle vmalloc'd buffers

First patch, adds can_dma() like interface for spi_flash_read() interface,
this will enable controller drivers to selectively use DMA based on buffer type, alignment, size or other limitations.
Second patch implements bounce buffer support for ti-qspi driver to handle buffers that are not DMA'able, like vmalloc'd buffers that belong to LPAE region. This is required to work with UBIFS.

Vignesh R (2):
spi: Add can_dma like interface for spi_flash_read
spi: spi-ti-qspi: Use bounce buffer if read buffer is not DMA'ble

 drivers/spi/spi-ti-qspi.c | 66 ++++++++++++++++++++++++++++++++++++++++++-----
 drivers/spi/spi.c         |  2 +-
 include/linux/spi/spi.h   |  4 +++
 3 files changed, 64 insertions(+), 8 deletions(-)
Signature · 1 line
2.11.0