From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753084AbcBKI5O (ORCPT ); Thu, 11 Feb 2016 03:57:14 -0500 Received: from arroyo.ext.ti.com ([192.94.94.40]:46224 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751505AbcBKI5M (ORCPT ); Thu, 11 Feb 2016 03:57:12 -0500 From: Peter Ujfalusi To: CC: , , , , Subject: [PATCH] dmaengine: omap-dma: Implement device_synchronize callback Date: Thu, 11 Feb 2016 10:54:54 +0200 Message-ID: <1455180894-2672-1-git-send-email-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.7.1 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We need the callback to support the dmaengine_terminate_sync(). Signed-off-by: Peter Ujfalusi --- 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..7c6a300b6b57 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 *c) +{ + 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