]> git.baikalelectronics.ru Git - kernel.git/commit
spi: atmel: Implements transfers with bounce buffer
authorRadu Pirea <radu.pirea@microchip.com>
Tue, 19 Dec 2017 15:17:59 +0000 (17:17 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 5 Jan 2018 12:42:09 +0000 (12:42 +0000)
commit683f7a129b6554e0a2ffafda47cb3586e103eaa3
tree5357fff9e7ec62c63165946b4fcfb951ac8ca778
parentc5de208305fc6dd4dd864c456c1efca78e70b66e
spi: atmel: Implements transfers with bounce buffer

This patch enables SPI DMA transfers for Atmel SAM9 SoCs and implements a
bounce buffer for transfers which have vmalloc allocated buffers. Those
buffers are not cache coherent even if they have been transformed into sg
lists. UBIFS is affected by this cache coherency issue.

In this patch I also reverted "spi: atmel: fix corrupted data issue on SAM9
family SoCs"(02496201d2f3e7a404b1ed96cf5af67e2cc26a4a).

Signed-off-by: Radu Pirea <radu.pirea@microchip.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-atmel.c