]> git.baikalelectronics.ru Git - kernel.git/commit
spi: qup: Setup DMA mode correctly
authorVaradarajan Narayanan <varada@codeaurora.org>
Fri, 28 Jul 2017 06:52:49 +0000 (12:22 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 8 Aug 2017 11:15:06 +0000 (12:15 +0100)
commit0afc6e2b78b5e023e528a8939e0d01125cc20608
tree8eb82d2143c9846edbeb453cabd0f798553a97bd
parent2e6f569053701dd66f576e3a90f9a8a9943eaa7f
spi: qup: Setup DMA mode correctly

To operate in DMA mode, the buffer should be aligned and
the size of the transfer should be a multiple of block size
(for v1). And the no. of words being transferred should
be programmed in the count registers appropriately.

Signed-off-by: Andy Gross <andy.gross@linaro.org>
Signed-off-by: Varadarajan Narayanan <varada@codeaurora.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-qup.c