]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
spi: omap2-mcspi: Undo broken fix for dma transfer of vmalloced buffer
authorAkinobu Mita <akinobu.mita@gmail.com>
Fri, 8 Apr 2016 18:43:15 +0000 (03:43 +0900)
committerMark Brown <broonie@kernel.org>
Tue, 12 Apr 2016 01:21:14 +0000 (02:21 +0100)
commit8070954d7c9fffa527e785292e901867338f79a9
tree05ea1d33cf4c129d3c7a1255b999cbcae1362d4c
parentbf16200689118d19de1b8d2a3c314fc21f5dc7bb
spi: omap2-mcspi: Undo broken fix for dma transfer of vmalloced buffer

This reverts commit 3525e0aac91c4de5d20b1f22a6c6e2b39db3cc96.

The DMA transfer for RX buffer was not handled correctly in this change.

The actual transfer length for DMA RX can be less than xfer->len in the
specific condition and the last words will be filled after the DMA
completion, but the commit doesn't consider it and the dmaengine is
started with rx_sg mapped by spi core.

The solution for this at least requires more lines than this commit
has inserted.  So revert it for now.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-omap2-mcspi.c