]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: xilinx_dma: Reset DMA channel in dma_terminate_all
authorRadhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Wed, 29 Jan 2020 07:45:09 +0000 (13:15 +0530)
committerVinod Koul <vkoul@kernel.org>
Mon, 24 Feb 2020 16:53:48 +0000 (22:23 +0530)
commitde092fe8ab0fafc0947d918b1a118733c40f3195
treeca944ad0f4fe3cab169c77f343acaa2c6417d3ad
parentef3fd0df78f2b03a0f638ac38de863a3828c494c
dmaengine: xilinx_dma: Reset DMA channel in dma_terminate_all

Reset DMA channel after stop to ensure that pending transfers and FIFOs
in the datapath are flushed or completed. It also cleanup the terminate
path and removes stop for the cyclic mode as after the reset stop is not
required. This fixes intermittent data verification failure when xilinx
dma test the client is stressed and loaded/unloaded multiple times.

Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Link: https://lore.kernel.org/r/1580283909-32678-1-git-send-email-radhey.shyam.pandey@xilinx.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/xilinx/xilinx_dma.c