git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
186b553
)
spi: dw-mid: terminate ongoing transfers at exit
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Thu, 18 Sep 2014 17:08:53 +0000
(20:08 +0300)
committer
Ben Hutchings
<ben@decadent.org.uk>
Sun, 14 Dec 2014 16:23:44 +0000
(16:23 +0000)
commit
8e45ef682cb31fda62ed4eeede5d9745a0a1b1e2
upstream.
Do full clean up at exit, means terminate all ongoing DMA transfers.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/spi/spi-dw-mid.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-dw-mid.c
b/drivers/spi/spi-dw-mid.c
index
c4dd7ef
..
c0ca0ee
100644
(file)
--- a/
drivers/spi/spi-dw-mid.c
+++ b/
drivers/spi/spi-dw-mid.c
@@
-90,7
+90,11
@@
static void mid_spi_dma_exit(struct dw_spi *dws)
{
if (!dws->dma_inited)
return;
+
+ dmaengine_terminate_all(dws->txchan);
dma_release_channel(dws->txchan);
+
+ dmaengine_terminate_all(dws->rxchan);
dma_release_channel(dws->rxchan);
}