dma: pl330: Fix cyclic transfers
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 23 Jul 2013 08:24:50 +0000 (10:24 +0200)
committerVinod Koul <vinod.koul@intel.com>
Sun, 28 Jul 2013 13:38:33 +0000 (19:08 +0530)
commitfc51446021f42aca8906e701fc2292965aafcb15
treea225fd3f5671140ffeb2ae6b771c2756e8fcba4a
parent27abb2ffb07a70bdebf9a785658f68f10600281c
dma: pl330: Fix cyclic transfers

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.

Cc: stable@vger.kernel.org
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/pl330.c