dmaengine: xilinx_dma: properly configure the SG mode bit in the driver for cdma
authorKedareswara rao Appana <appana.durga.rao@xilinx.com>
Wed, 3 Jan 2018 06:42:09 +0000 (12:12 +0530)
committerVinod Koul <vinod.koul@intel.com>
Mon, 8 Jan 2018 10:54:50 +0000 (16:24 +0530)
commit48c62fb051af3850e631b573e5393a2b0808ef10
treed11fe7508abfb19bf0a5ebe97298b5d5728cc9bc
parent3093186898b06a2eda0bf02329fff6754b6cbfe3
dmaengine: xilinx_dma: properly configure the SG mode bit in the driver for cdma

If the hardware is configured for Scatter Gather(SG) mode,
and hardware is idle, in the control register SG mode bit
must be set to a 0 then back to 1 by the software, to force
the CDMA SG engine to use a new value written to the CURDESC_PNTR
register, failure to do so could result errors from the dmaengine.

This patch updates the same.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/xilinx/xilinx_dma.c