spi: davinci: Use SPI framework to handle DMA mapping
authorFabien Parent <fparent@baylibre.com>
Thu, 23 Feb 2017 18:01:56 +0000 (19:01 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 7 Mar 2017 14:10:25 +0000 (15:10 +0100)
commit8aedbf580d21121d2a032e4c8ea12d8d2d85e275
tree5fd78767ff1e173ddcec72d1673366204031838f
parentc1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201
spi: davinci: Use SPI framework to handle DMA mapping

Uppers layers like MTD can pass vmalloc'd buffers to the SPI driver,
and the current implementation will fail to map these kind of buffers.
The SPI framework is able to detect the best way to handle and map
buffers.
This commit updates the davinci SPI driver in order to use the SPI
framework to handle the DMA mapping of buffers coming from an upper
layer.

Signed-off-by: Fabien Parent <fparent@baylibre.com>
Signed-off-by: Frode Isaksen <fisaksen@baylibre.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-davinci.c