]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
dmaengine: at_xdmac: fix bug in prep_dma_cyclic
authorLudovic Desroches <ludovic.desroches@atmel.com>
Wed, 22 Jul 2015 14:12:29 +0000 (16:12 +0200)
committerVinod Koul <vinod.koul@intel.com>
Wed, 19 Aug 2015 15:51:28 +0000 (21:21 +0530)
commite900c30dc1bb0cbc07708e9be1188f531632b2ef
tree2e4637c801f4e6a9051e57b9e06ef8133ed5cef2
parentae9c02b421139c4c44340b019e250a9969a91613
dmaengine: at_xdmac: fix bug in prep_dma_cyclic

In cyclic mode, the round chaining has been broken by the introduction
of at_xdmac_queue_desc(): AT_XDMAC_MBR_UBC_NDE is set for all descriptors
excepted for the last one. at_xdmac_queue_desc() has to be called one
more time to chain the last and the first descriptors.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Fixes: 0d0ee751f7f7 ("dmaengine: xdmac: Rework the chaining logic")
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/at_xdmac.c