From: Peter Ujfalusi <peter.ujfalusi@ti.com>
To: <vinod.koul@intel.com>
Cc: <linux-kernel@vger.kernel.org>, <dmaengine@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>, <nsekhar@ti.com>,
<linux-omap@vger.kernel.org>
Subject: Re: [PATCH] dmaengine: omap-dma: Implement device_synchronize callback
Date: Thu, 11 Feb 2016 11:00:47 +0200 [thread overview]
Message-ID: <56BC4DBF.8080605@ti.com> (raw)
In-Reply-To: <1455180894-2672-1-git-send-email-peter.ujfalusi@ti.com>
On 02/11/2016 10:54 AM, Peter Ujfalusi wrote:
> We need the callback to support the dmaengine_terminate_sync().
I have made some typos and I only compiled the kernel after sending the patch..
Resending.
> 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..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);
>
--
Péter
next prev parent reply other threads:[~2016-02-11 9:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-11 8:54 [PATCH] dmaengine: omap-dma: Implement device_synchronize callback Peter Ujfalusi
2016-02-11 9:00 ` Peter Ujfalusi [this message]
2016-02-11 10:28 ` kbuild test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56BC4DBF.8080605@ti.com \
--to=peter.ujfalusi@ti.com \
--cc=dmaengine@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=nsekhar@ti.com \
--cc=vinod.koul@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox