Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1557830

Re: [RESEND] spi: davinci: Allow device tree devices to use DMA

From Kevin Hilman <khilman@baylibre.com>
Newsgroups linux.kernel
Subject Re: [RESEND] spi: davinci: Allow device tree devices to use DMA
Date 2017-01-12 22:40 +0100
Message-ID <sYVge-Ak-23@gated-at.bofh.it> (permalink)
References <sWto5-420-3@gated-at.bofh.it>
Organization BayLibre

Show all headers | View raw


David Lechner <david@lechnology.com> writes:

> This allows SPI devices specified in a device tree to use DMA when the
> master controller.

Enabling DMA for spi-davinci isn't quite ready yet since this driver is
blindly using dma_map_single() on addresses passed in.  MTD seems to use
vmalloc'd buffers, which cannot be passed direclty to dma_map_single().

I thinks this driver needs an update to use spi_map_buf() to be able to
handle vmalloc'd buffers before always enabling DMA.

Kevin

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[RESEND] spi: davinci: Allow device tree devices to use DMA David Lechner <david@lechnology.com> - 2017-01-06 04:30 +0100
  Re: [RESEND] spi: davinci: Allow device tree devices to use DMA Mark Brown <broonie@kernel.org> - 2017-01-09 20:50 +0100
    Re: [RESEND] spi: davinci: Allow device tree devices to use DMA David Lechner <david@lechnology.com> - 2017-01-09 21:50 +0100
      Re: [RESEND] spi: davinci: Allow device tree devices to use DMA Mark Brown <broonie@kernel.org> - 2017-01-10 18:00 +0100
  Re: [RESEND] spi: davinci: Allow device tree devices to use DMA Kevin Hilman <khilman@baylibre.com> - 2017-01-12 22:40 +0100
    Re: [RESEND] spi: davinci: Allow device tree devices to use DMA Mark Brown <broonie@kernel.org> - 2017-01-13 13:10 +0100

csiph-web