[PATCH] dmaengine: pxa_dma: implement device_synchronize

2016-07-10 Thread Robert Jarzmik
Implement the function which wait until a dma channel is stopped to have a synchronization point. This also protects the pxad_remove() from races, such as spurious interrupts while removing the driver, because : - as long as there is one dma channel requested, ie. dma_chan_get() but no dma_cha

Re: [PATCH] dmaengine: pxa_dma: implement device_synchronize

2016-07-11 Thread Vinod Koul
On Sun, Jul 10, 2016 at 11:50:49PM +0200, Robert Jarzmik wrote: > Implement the function which wait until a dma channel is stopped to have > a synchronization point. > > This also protects the pxad_remove() from races, such as spurious > interrupts while removing the driver, because : > - as long