summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-pic32.c
diff options
context:
space:
mode:
authorCezary Gapinski <cezary.gapinski@gmail.com>2019-03-26 22:48:59 +0100
committerMark Brown <broonie@kernel.org>2019-04-01 10:24:47 +0200
commit94b18a86eb5c82c5778bfb1ce815651f0e331bb5 (patch)
tree317051607a9d2fd17d1908443c0c27fcf44739dd /drivers/spi/spi-pic32.c
parentspi: tegra20-slink: change chip select action order (diff)
downloadlinux-94b18a86eb5c82c5778bfb1ce815651f0e331bb5.tar.xz
linux-94b18a86eb5c82c5778bfb1ce815651f0e331bb5.zip
spi: pic32: fix dma channels termination
When timeout occurs DMA TX and RX channels should be stopped instead of stopping RX channel twice time. Signed-off-by: Cezary Gapinski <cezary.gapinski@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-pic32.c')
-rw-r--r--drivers/spi/spi-pic32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-pic32.c b/drivers/spi/spi-pic32.c
index 131849adc570..d9f374c8b709 100644
--- a/drivers/spi/spi-pic32.c
+++ b/drivers/spi/spi-pic32.c
@@ -559,7 +559,7 @@ static int pic32_spi_one_transfer(struct spi_master *master,
dev_err(&spi->dev, "wait error/timedout\n");
if (dma_issued) {
dmaengine_terminate_all(master->dma_rx);
- dmaengine_terminate_all(master->dma_rx);
+ dmaengine_terminate_all(master->dma_tx);
}
ret = -ETIMEDOUT;
} else {