diff options
author | Jiada Wang <jiada_wang@mentor.com> | 2017-03-16 23:12:09 -0700 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2017-03-27 10:50:59 +0530 |
commit | 7f3ff14b7eb1ffad132117f08a1973b48e653d43 (patch) | |
tree | ba2362d0dbdc3cbbc20862037b7ded1290515c48 /drivers/dma/xgene-dma.c | |
parent | 1175f83cdb7a321b8b7b061d18846d58490b2654 (diff) | |
download | talos-obmc-linux-7f3ff14b7eb1ffad132117f08a1973b48e653d43.tar.gz talos-obmc-linux-7f3ff14b7eb1ffad132117f08a1973b48e653d43.zip |
dmaengine: imx-sdma: add 1ms delay to ensure SDMA channel is stopped
sdma_disable_channel() cannot ensure dma is stopped to access
module's FIFOs. There is chance SDMA core is running and accessing
BD when disable of corresponding channel, this may cause sometimes
even after call of .sdma_disable_channel(), SDMA core still be
running and accessing module's FIFOs.
According to NXP R&D team a delay of one BD SDMA cost time (maximum
is 1ms) should be added after disable of the channel bit, to ensure
SDMA core has really been stopped after SDMA clients call
.device_terminate_all.
This patch introduces adds a new function sdma_disable_channel_with_delay()
which simply adds 1ms delay after call sdma_disable_channel(),
and set it as .device_terminate_all.
Signed-off-by: Jiada Wang <jiada_wang@mentor.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/xgene-dma.c')
0 files changed, 0 insertions, 0 deletions