mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 08:26:59 +00:00
spi: dw-mid: terminate ongoing transfers at exit
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
This commit is contained in:
parent
b41583e729
commit
8e45ef682c
1 changed files with 4 additions and 0 deletions
|
@ -89,7 +89,11 @@ static void mid_spi_dma_exit(struct dw_spi *dws)
|
||||||
{
|
{
|
||||||
if (!dws->dma_inited)
|
if (!dws->dma_inited)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
dmaengine_terminate_all(dws->txchan);
|
||||||
dma_release_channel(dws->txchan);
|
dma_release_channel(dws->txchan);
|
||||||
|
|
||||||
|
dmaengine_terminate_all(dws->rxchan);
|
||||||
dma_release_channel(dws->rxchan);
|
dma_release_channel(dws->rxchan);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue