spi: at91-usart: add DMA support
authorRadu Pirea <radu_nicolae.pirea@upb.ro>
Sun, 5 May 2019 18:06:46 +0000 (21:06 +0300)
committerMark Brown <broonie@kernel.org>
Wed, 8 May 2019 08:45:26 +0000 (17:45 +0900)
commitc3fdefc2d79e38d20e955d2d3ad48261d99c2936
tree1a8ed609a597a247338c5e9ab60e77af0c09a084
parentf7b99e5948e6be8b850eecbb2de1986d26a76b36
spi: at91-usart: add DMA support

This patch adds support for DMA. Transfers are done with dma only if
they are longer than 16 bytes in order to achieve a better performance.
DMA setup introduces a little overhead and for transfers shorter than 16
bytes there is no performance improvement.

Signed-off-by: Radu Pirea <radu_nicolae.pirea@upb.ro>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-at91-usart.c