lkml.org 
[lkml]   [2016]   [Jul]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[RFC] [PATCH v3 0/4] spi: omap2-mcspi: Use the SPI framework to handle DMA mapping
Date
This patchset switches omap2-mcspi from handling DMA mapping internally to
using the mechanism built into the SPI framework.

However, this is slightly complex since some OMAP SoCs have a quirk that
needs to be handled. In the driver on certain OMAP SOCs if certain
conditions are met the DMA should transfer one or two less elements
when reading from the SPI. The remaining bytes are read in CPU mode.
Sg_split is used to implement this quirk without altering the original
sgl.

Note: The first patch looks to already have been accepted.

V2 changes:
Save page_link value if page_link doesn't point to chained sg_list

v3 changes:
Switch from using custom sg_table clone function to sg_split that already
exist within the kernel.

Franklin S Cooper Jr (4):
spi: omap2-mcspi: Add comments for RX only DMA buffer workaround
spi: spi-omap2-mcspi: Select SPI_SPLIT
spi: omap2-mcspi: Use the SPI framework to handle DMA mapping
ARM: dts: am335x-icev2: Add SPI based NOR

arch/arm/boot/dts/am335x-icev2.dts | 39 ++++++++++
drivers/spi/Kconfig | 1 +
drivers/spi/spi-omap2-mcspi.c | 145 ++++++++++++++++++-------------------
3 files changed, 109 insertions(+), 76 deletions(-)

--
2.7.0

\
 
 \ /
  Last update: 2016-07-07 20:01    [W:0.112 / U:3.312 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site