Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1331772 > unrolled thread
| Started by | Peter Ujfalusi <peter.ujfalusi@ti.com> |
|---|---|
| First post | 2016-02-11 10:20 +0100 |
| Last post | 2016-02-22 03:50 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH v2] dmaengine: omap-dma: Implement device_synchronize callback Peter Ujfalusi <peter.ujfalusi@ti.com> - 2016-02-11 10:20 +0100
Re: [PATCH v2] dmaengine: omap-dma: Implement device_synchronize callback Vinod Koul <vinod.koul@intel.com> - 2016-02-22 03:50 +0100
| From | Peter Ujfalusi <peter.ujfalusi@ti.com> |
|---|---|
| Date | 2016-02-11 10:20 +0100 |
| Subject | [PATCH v2] dmaengine: omap-dma: Implement device_synchronize callback |
| Message-ID | <r0VzR-6IR-37@gated-at.bofh.it> |
We need the callback to support the dmaengine_terminate_sync().
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
drivers/dma/omap-dma.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/dma/omap-dma.c b/drivers/dma/omap-dma.c
index e691f48f9d73..bfdf29aa3428 100644
--- a/drivers/dma/omap-dma.c
+++ b/drivers/dma/omap-dma.c
@@ -1007,6 +1007,13 @@ static int omap_dma_terminate_all(struct dma_chan *chan)
return 0;
}
+static void omap_dma_synchronize(struct dma_chan *chan)
+{
+ struct omap_chan *c = to_omap_dma_chan(chan);
+
+ vchan_synchronize(&c->vc);
+}
+
static int omap_dma_pause(struct dma_chan *chan)
{
struct omap_chan *c = to_omap_dma_chan(chan);
@@ -1110,6 +1117,7 @@ static int omap_dma_probe(struct platform_device *pdev)
od->ddev.device_pause = omap_dma_pause;
od->ddev.device_resume = omap_dma_resume;
od->ddev.device_terminate_all = omap_dma_terminate_all;
+ od->ddev.device_synchronize = omap_dma_synchronize;
od->ddev.src_addr_widths = OMAP_DMA_BUSWIDTHS;
od->ddev.dst_addr_widths = OMAP_DMA_BUSWIDTHS;
od->ddev.directions = BIT(DMA_DEV_TO_MEM) | BIT(DMA_MEM_TO_DEV);
--
2.7.1
[toc] | [next] | [standalone]
| From | Vinod Koul <vinod.koul@intel.com> |
|---|---|
| Date | 2016-02-22 03:50 +0100 |
| Subject | Re: [PATCH v2] dmaengine: omap-dma: Implement device_synchronize callback |
| Message-ID | <r4OJs-7dG-5@gated-at.bofh.it> |
| In reply to | #1331772 |
On Thu, Feb 11, 2016 at 11:08:34AM +0200, Peter Ujfalusi wrote: > We need the callback to support the dmaengine_terminate_sync(). Applied, thanks -- ~Vinod
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web