lkml.org 
[lkml]   [2016]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 2/7] dmaengine: omap-dma: Complete the cookie first on transfer completion
Date
Before looking for the next descriptor to start, complete the just finished
cookie.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
drivers/dma/omap-dma.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/dma/omap-dma.c b/drivers/dma/omap-dma.c
index 7d56cd88c9a5..f7b0b0c668fb 100644
--- a/drivers/dma/omap-dma.c
+++ b/drivers/dma/omap-dma.c
@@ -449,8 +449,8 @@ static void omap_dma_callback(int ch, u16 status, void *data)
if (c->sgidx < d->sglen) {
omap_dma_start_sg(c, d);
} else {
- omap_dma_start_desc(c);
vchan_cookie_complete(&d->vd);
+ omap_dma_start_desc(c);
}
} else {
vchan_cyclic_callback(&d->vd);
--
2.9.1
\
 
 \ /
  Last update: 2016-07-14 15:21    [W:0.142 / U:12.900 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site