linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] [PATCH v3 0/4] spi: omap2-mcspi: Use the SPI framework to handle DMA mapping
@ 2016-07-07 17:17 Franklin S Cooper Jr
       [not found] ` <1467911871-4508-1-git-send-email-fcooper-l0cyMroinI0@public.gmane.org>
  2016-07-07 17:17 ` [RFC] [PATCH v3 2/4] spi: spi-omap2-mcspi: Select SPI_SPLIT Franklin S Cooper Jr
  0 siblings, 2 replies; 10+ messages in thread
From: Franklin S Cooper Jr @ 2016-07-07 17:17 UTC (permalink / raw)
  To: tony, robh+dt, broonie, linux-omap, devicetree, linux-arm-kernel,
	linux-kernel, linux-spi, andy.shevchenko, robert.jarzmik, nsekhar
  Cc: Franklin S Cooper Jr

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-07-08  8:54 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-07 17:17 [RFC] [PATCH v3 0/4] spi: omap2-mcspi: Use the SPI framework to handle DMA mapping Franklin S Cooper Jr
     [not found] ` <1467911871-4508-1-git-send-email-fcooper-l0cyMroinI0@public.gmane.org>
2016-07-07 17:17   ` [RFC] [PATCH v3 1/4] spi: omap2-mcspi: Add comments for RX only DMA buffer workaround Franklin S Cooper Jr
     [not found]     ` <1467911871-4508-2-git-send-email-fcooper-l0cyMroinI0@public.gmane.org>
2016-07-08  8:46       ` Mark Brown
2016-07-07 17:17   ` [RFC] [PATCH v3 3/4] spi: omap2-mcspi: Use the SPI framework to handle DMA mapping Franklin S Cooper Jr
     [not found]     ` <1467911871-4508-4-git-send-email-fcooper-l0cyMroinI0@public.gmane.org>
2016-07-08  8:49       ` Applied "spi: omap2-mcspi: Use the SPI framework to handle DMA mapping" to the spi tree Mark Brown
2016-07-07 17:17   ` [RFC] [PATCH v3 4/4] ARM: dts: am335x-icev2: Add SPI based NOR Franklin S Cooper Jr
2016-07-07 17:17 ` [RFC] [PATCH v3 2/4] spi: spi-omap2-mcspi: Select SPI_SPLIT Franklin S Cooper Jr
2016-07-07 17:33   ` Randy Dunlap
     [not found]   ` <1467911871-4508-3-git-send-email-fcooper-l0cyMroinI0@public.gmane.org>
2016-07-08  8:49     ` Applied "spi: omap2-mcspi: Select SPI_SPLIT" to the spi tree Mark Brown
2016-07-08  8:54       ` Sekhar Nori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).