]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Oct 2015 21:49:17 +0000 (14:49 -0700)
commitaea324b7fe9b6dbc98fc8e52da58e9a244a7fa7f
tree0ddb01ae23757c1b839d1425239f043cf9380612
parent7ed23a5ce738219bc498cfe0d717186ecbf2890c
dmaengine: at_xdmac: fix bug in prep_dma_cyclic

commit e900c30dc1bb0cbc07708e9be1188f531632b2ef upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dma/at_xdmac.c