diff options
author | Javier Martin <javier.martin@vista-silicon.com> | 2012-03-22 09:54:15 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@linux.intel.com> | 2012-03-26 02:01:32 -0400 |
commit | 660cd0dd94eba5201c69cd10f2d2fefb52807fa8 (patch) | |
tree | 227318217703120f49de136c659cba84109a22d9 /drivers/dma | |
parent | f606ab897b6d7f35b57c7474424676e30457520b (diff) |
dmaengine: i.MX: Fix merge of cookie branch.
When merging DMA cookie changes a small chunk
of code was dropped. This broke imx-dma driver.
This patch adds this chunk again and fixes the problem.
Signed-off-by: Javier Martin <javier.martin@vista-silicon.com>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/imx-dma.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/imx-dma.c b/drivers/dma/imx-dma.c index 0f698f883cca..569b0a29fa8c 100644 --- a/drivers/dma/imx-dma.c +++ b/drivers/dma/imx-dma.c | |||
@@ -679,6 +679,7 @@ static dma_cookie_t imxdma_tx_submit(struct dma_async_tx_descriptor *tx) | |||
679 | unsigned long flags; | 679 | unsigned long flags; |
680 | 680 | ||
681 | spin_lock_irqsave(&imxdma->lock, flags); | 681 | spin_lock_irqsave(&imxdma->lock, flags); |
682 | list_move_tail(imxdmac->ld_free.next, &imxdmac->ld_queue); | ||
682 | cookie = dma_cookie_assign(tx); | 683 | cookie = dma_cookie_assign(tx); |
683 | spin_unlock_irqrestore(&imxdma->lock, flags); | 684 | spin_unlock_irqrestore(&imxdma->lock, flags); |
684 | 685 | ||