Re: [PATCH v2 5/7] iio: adc: stm32: add optional dma support

2017-01-30 Thread Fabrice Gasnier
On 01/28/2017 07:41 PM, Jonathan Cameron wrote: On 26/01/17 14:28, Fabrice Gasnier wrote: Add DMA optional support to STM32 ADC, as there is a limited number DMA channels (request lines) that can be assigned to ADC. This way, driver may fall back using interrupts when all DMA channels are in use

Re: [PATCH v2 5/7] iio: adc: stm32: add optional dma support

2017-01-28 Thread Jonathan Cameron
On 26/01/17 14:28, Fabrice Gasnier wrote: > Add DMA optional support to STM32 ADC, as there is a limited number DMA > channels (request lines) that can be assigned to ADC. This way, driver > may fall back using interrupts when all DMA channels are in use for > other IPs. > Use dma cyclic mode with

Re: [PATCH v2 5/7] iio: adc: stm32: add optional dma support

2017-01-28 Thread Jonathan Cameron
On 26/01/17 14:28, Fabrice Gasnier wrote: > Add DMA optional support to STM32 ADC, as there is a limited number DMA > channels (request lines) that can be assigned to ADC. This way, driver > may fall back using interrupts when all DMA channels are in use for > other IPs. > Use dma cyclic mode with

[PATCH v2 5/7] iio: adc: stm32: add optional dma support

2017-01-26 Thread Fabrice Gasnier
Add DMA optional support to STM32 ADC, as there is a limited number DMA channels (request lines) that can be assigned to ADC. This way, driver may fall back using interrupts when all DMA channels are in use for other IPs. Use dma cyclic mode with two periods. Allow to tune period length by using wa