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

Signed-off-by: Lars-Peter Clausen <>
Signed-off-by: Vinod Koul <>
1 file changed