Re: [PATCH] iio: adc: stm32-adc: fix a race when using several adcs with dma and irq

2019-09-17 Thread Jonathan Cameron
On Mon, 16 Sep 2019 13:47:34 +0200 Fabrice Gasnier wrote: > On 9/15/19 12:05 PM, Jonathan Cameron wrote: > > On Fri, 13 Sep 2019 15:21:30 +0200 > > Fabrice Gasnier wrote: > > > >> End of conversion may be handled by using IRQ or DMA. There may be a > >> race when two conversions complete at

Re: [PATCH] iio: adc: stm32-adc: fix a race when using several adcs with dma and irq

2019-09-16 Thread Fabrice Gasnier
On 9/15/19 12:05 PM, Jonathan Cameron wrote: > On Fri, 13 Sep 2019 15:21:30 +0200 > Fabrice Gasnier wrote: > >> End of conversion may be handled by using IRQ or DMA. There may be a >> race when two conversions complete at the same time on several ADCs. >> EOC can be read as 'set' for several

Re: [PATCH] iio: adc: stm32-adc: fix a race when using several adcs with dma and irq

2019-09-15 Thread Jonathan Cameron
On Fri, 13 Sep 2019 15:21:30 +0200 Fabrice Gasnier wrote: > End of conversion may be handled by using IRQ or DMA. There may be a > race when two conversions complete at the same time on several ADCs. > EOC can be read as 'set' for several ADCs, with: > - an ADC configured to use IRQs. EOCIE bit

[PATCH] iio: adc: stm32-adc: fix a race when using several adcs with dma and irq

2019-09-13 Thread Fabrice Gasnier
End of conversion may be handled by using IRQ or DMA. There may be a race when two conversions complete at the same time on several ADCs. EOC can be read as 'set' for several ADCs, with: - an ADC configured to use IRQs. EOCIE bit is set. The handler is normally called in this case. - an ADC