lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 11 Feb 2016 11:00:47 +0200
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>, <nsekhar@...com>,
	<linux-omap@...r.kernel.org>
Subject: Re: [PATCH] dmaengine: omap-dma: Implement device_synchronize
 callback

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@...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

Powered by blists - more mailing lists