mirror of
https://github.com/torvalds/linux.git
synced 2026-06-09 23:23:53 +02:00
dmaengine: pl330: dont complete descriptor for cyclic dma
commit30c1dc0ff3upstream. Commiteab2158558("dmaengine: pl330: dont complete descriptor for cyclic dma") wrongly completes descriptor for cyclic dma, hence following BUG_ON is still hit with cyclic DMA operations. kernel BUG at drivers/dma/dmaengine.h:53! Signed-off-by: Tushar Behera <tushar.behera@linaro.org> Acked-by: Jassi Brar <jaswinder.singh@linaro.org> Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
3d90eeae37
commit
2f0d20928b
|
|
@ -2322,7 +2322,7 @@ static void pl330_tasklet(unsigned long data)
|
|||
/* Pick up ripe tomatoes */
|
||||
list_for_each_entry_safe(desc, _dt, &pch->work_list, node)
|
||||
if (desc->status == DONE) {
|
||||
if (pch->cyclic)
|
||||
if (!pch->cyclic)
|
||||
dma_cookie_complete(&desc->txd);
|
||||
list_move_tail(&desc->node, &list);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user