]> rtime.felk.cvut.cz Git - vajnamar/linux-xlnx.git/commit
dma: xilinx: Fix race conditions in the driver for cdma
authorKedareswara rao Appana <appana.durga.rao@xilinx.com>
Mon, 16 Oct 2017 08:52:39 +0000 (14:22 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 17 Oct 2017 10:54:52 +0000 (12:54 +0200)
commitb3fe111ed18045e3da0362bc2afdb1f32b8dbd51
tree6aafbd9c144696b7d1466ad18448b855720f5122
parent9e8f5fc56a80b30709e48495f8c5389177a25265
dma: xilinx: Fix race conditions in the driver for cdma

This patch fixes the below issues
--> when hardware is idle we need to toggle the SG bit
inorder to update new value to the current descriptor
register other wise undefined results will occur.
--> Halt bit is not valid for cdma case add checks
for the same.

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