dma: pl330: Fix cyclic transfers
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 23 Jul 2013 08:24:50 +0000 (10:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Aug 2013 01:35:21 +0000 (18:35 -0700)
commit9b0f8f01765acdf7c84078b63d2e34c2b2dcafa8
tree41b38d27418a6a8934707a2770ddf31a0b2bcf5b
parent17e94a63470ddbd191bcc386f55f62987b58f912
dma: pl330: Fix cyclic transfers

commit fc51446021f42aca8906e701fc2292965aafcb15 upstream.

Allocate a descriptor for each period of a cyclic transfer, not just the first.
Also since the callback needs to be called for each finished period make sure to
initialize the callback and callback_param fields of each descriptor in a cyclic
transfer.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dma/pl330.c