]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
dmaengine: xilinx_dma: Check for channel idle state before submitting dma descriptor
authorKedareswara rao Appana <appana.durga.rao@xilinx.com>
Sat, 21 Jan 2017 06:02:06 +0000 (11:32 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 24 Jan 2017 15:40:05 +0000 (16:40 +0100)
commit895ba71c3c96ca5b9691c520f493e9976d4df1d5
treea16e6aa4be2ed8ee763cd06913fd1ceabad1214b
parent5e95f91dd149be0c6e104e20906308c1ca0476ac
dmaengine: xilinx_dma: Check for channel idle state before submitting dma descriptor

Add variable for checking channel idle state to ensure that dma descriptor is not
Submitted when DMA engine is in progress.

This will avoids the pollling for a bit in the status register to know
Dma state in the driver hot path.

Reviewed-by: Jose Abreu <joabreu@synopsys.com>
Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/dma/xilinx/xilinx_dma.c