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)
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>

No differences found