Re: [PATCH] dma: pl330: assign a new cookie when restarting tx descriptors in cyclic mode

2012-05-05 Thread Thomas Abraham
On 3 May 2012 20:44, Vinod Koul wrote: > On Thu, 2012-05-03 at 17:50 -0700, Thomas Abraham wrote: >> The cookie of completed transfer descriptors are marked as zero. In case of >> cyclic transfers, a new cookie needs to be assigned to the transfer >> descriptors >> which are picked up from the wo

Re: [PATCH] dma: pl330: assign a new cookie when restarting tx descriptors in cyclic mode

2012-05-03 Thread Vinod Koul
On Thu, 2012-05-03 at 17:50 -0700, Thomas Abraham wrote: > The cookie of completed transfer descriptors are marked as zero. In case of > cyclic transfers, a new cookie needs to be assigned to the transfer > descriptors > which are picked up from the work_list list before they are re-enabled for >

[PATCH] dma: pl330: assign a new cookie when restarting tx descriptors in cyclic mode

2012-05-03 Thread Thomas Abraham
The cookie of completed transfer descriptors are marked as zero. In case of cyclic transfers, a new cookie needs to be assigned to the transfer descriptors which are picked up from the work_list list before they are re-enabled for transfer. This prevents hitting BUG_ON in dma_cookie_complete functi