spi: atmel: Use SPI core DMA mapping framework
authorCyrille Pitchen <cyrille.pitchen@atmel.com>
Thu, 24 Nov 2016 11:24:59 +0000 (12:24 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 25 Nov 2016 13:07:25 +0000 (13:07 +0000)
commit04242ca4e8917999ac2bbc3d2b10409661f60272
treeb86546a6ac2cd0e44530fc5e5ff0218c66bd887d
parent7910d9af000acc155745e44be55a5d0dc9e26ce7
spi: atmel: Use SPI core DMA mapping framework

Use the SPI core DMA mapping framework instead of our own
in case of DMA support. PDC support is not converted to this
framework.

The driver is now able to transfer a complete sg list through DMA.
This eventually fix an issue with vmalloc'ed DMA memory that is
provided for example by UBI/UBIFS layers.

Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
[nicolas.ferre@atmel.com: restrict the use to non-PDC DMA]
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-atmel.c