[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160714124242.7579-3-peter.ujfalusi@ti.com>
Date: Thu, 14 Jul 2016 15:42:37 +0300
From: Peter Ujfalusi <peter.ujfalusi@...com>
To: <vinod.koul@...el.com>
CC: <linux-kernel@...r.kernel.org>, <dmaengine@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-omap@...r.kernel.org>, <tony@...mide.com>,
<linux@....linux.org.uk>
Subject: [PATCH 2/7] dmaengine: omap-dma: Complete the cookie first on transfer completion
Before looking for the next descriptor to start, complete the just finished
cookie.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@...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
Powered by blists - more mailing lists