Re: Re: [PATCH v2 1/2] OMAP2+: DMA: Workaround for invalid source position

2011-12-08 Thread Tony Lindgren
* Péter Ujfalusi peter.ujfal...@ti.com [29 04:26]: On Thursday 10 November 2011 15:02:04 Jarkko Nikula wrote: On 11/10/2011 02:46 PM, Jarkko Nikula wrote: On 11/07/2011 11:33 AM, Peter Ujfalusi wrote: I think this is enough: if (unlikely(p-dma_read(CDAC, lch) == 0))

Re: Re: [PATCH v2 1/2] OMAP2+: DMA: Workaround for invalid source position

2011-11-29 Thread Péter Ujfalusi
On Thursday 10 November 2011 15:02:04 Jarkko Nikula wrote: On 11/10/2011 02:46 PM, Jarkko Nikula wrote: On 11/07/2011 11:33 AM, Peter Ujfalusi wrote: If the DMA source position has been asked before the first actual data transfer has been done, the CSAC register does not contain valid

Re: [PATCH v2 1/2] OMAP2+: DMA: Workaround for invalid source position

2011-11-10 Thread Jarkko Nikula
On 11/07/2011 11:33 AM, Peter Ujfalusi wrote: If the DMA source position has been asked before the first actual data transfer has been done, the CSAC register does not contain valid information. We can identify this situation by checking the CDAC register: CDAC != 0 indicates that the DMA

Re: [PATCH v2 1/2] OMAP2+: DMA: Workaround for invalid source position

2011-11-10 Thread Jarkko Nikula
On 11/10/2011 02:46 PM, Jarkko Nikula wrote: On 11/07/2011 11:33 AM, Peter Ujfalusi wrote: If the DMA source position has been asked before the first actual data transfer has been done, the CSAC register does not contain valid information. We can identify this situation by checking the CDAC

[PATCH v2 1/2] OMAP2+: DMA: Workaround for invalid source position

2011-11-07 Thread Peter Ujfalusi
If the DMA source position has been asked before the first actual data transfer has been done, the CSAC register does not contain valid information. We can identify this situation by checking the CDAC register: CDAC != 0 indicates that the DMA transfer on the channel has been started already. When