projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b41583e
)
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
Mark Brown
<broonie@kernel.org>
Wed, 24 Sep 2014 08:48:53 +0000
(09:48 +0100)
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>
Cc: stable@vger.kernel.org
drivers/spi/spi-dw-mid.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/spi/spi-dw-mid.c
b/drivers/spi/spi-dw-mid.c
index f7f0ad285ae6ff97c7b4e89d2c87f2d69c0e910d..ecae30fe28affccab3083a2ecac1f5c130562811 100644
(file)
--- a/
drivers/spi/spi-dw-mid.c
+++ b/
drivers/spi/spi-dw-mid.c
@@
-89,7
+89,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);
}