Re: [PATCH v2 4/5] iio: trigger: add support for STM32 EXTI triggers

2017-02-19 Thread Jonathan Cameron
On 17/02/17 16:05, Fabrice Gasnier wrote: > On 02/11/2017 11:29 AM, Jonathan Cameron wrote: >> On 06/02/17 16:01, Fabrice Gasnier wrote: >>> On 02/04/2017 12:39 PM, Jonathan Cameron wrote: On 03/02/17 19:40, Linus Walleij wrote: > On Mon, Jan 30, 2017 at 3:33 PM, Fabrice Gasnier

Re: [PATCH v2 4/5] iio: trigger: add support for STM32 EXTI triggers

2017-02-19 Thread Jonathan Cameron
On 17/02/17 16:05, Fabrice Gasnier wrote: > On 02/11/2017 11:29 AM, Jonathan Cameron wrote: >> On 06/02/17 16:01, Fabrice Gasnier wrote: >>> On 02/04/2017 12:39 PM, Jonathan Cameron wrote: On 03/02/17 19:40, Linus Walleij wrote: > On Mon, Jan 30, 2017 at 3:33 PM, Fabrice Gasnier >

Re: [PATCH v2 4/5] iio: trigger: add support for STM32 EXTI triggers

2017-02-17 Thread Fabrice Gasnier
On 02/11/2017 11:29 AM, Jonathan Cameron wrote: On 06/02/17 16:01, Fabrice Gasnier wrote: On 02/04/2017 12:39 PM, Jonathan Cameron wrote: On 03/02/17 19:40, Linus Walleij wrote: On Mon, Jan 30, 2017 at 3:33 PM, Fabrice Gasnier wrote: EXTi[0..15] gpio signal can be

Re: [PATCH v2 4/5] iio: trigger: add support for STM32 EXTI triggers

2017-02-17 Thread Fabrice Gasnier
On 02/11/2017 11:29 AM, Jonathan Cameron wrote: On 06/02/17 16:01, Fabrice Gasnier wrote: On 02/04/2017 12:39 PM, Jonathan Cameron wrote: On 03/02/17 19:40, Linus Walleij wrote: On Mon, Jan 30, 2017 at 3:33 PM, Fabrice Gasnier wrote: EXTi[0..15] gpio signal can be routed internally as

Re: [PATCH v2 4/5] iio: trigger: add support for STM32 EXTI triggers

2017-02-11 Thread Jonathan Cameron
On 06/02/17 16:01, Fabrice Gasnier wrote: > On 02/04/2017 12:39 PM, Jonathan Cameron wrote: >> On 03/02/17 19:40, Linus Walleij wrote: >>> On Mon, Jan 30, 2017 at 3:33 PM, Fabrice Gasnier >>> wrote: >>> EXTi[0..15] gpio signal can be routed internally as trigger

Re: [PATCH v2 4/5] iio: trigger: add support for STM32 EXTI triggers

2017-02-11 Thread Jonathan Cameron
On 06/02/17 16:01, Fabrice Gasnier wrote: > On 02/04/2017 12:39 PM, Jonathan Cameron wrote: >> On 03/02/17 19:40, Linus Walleij wrote: >>> On Mon, Jan 30, 2017 at 3:33 PM, Fabrice Gasnier >>> wrote: >>> EXTi[0..15] gpio signal can be routed internally as trigger source for ADC or DAC

Re: [PATCH v2 4/5] iio: trigger: add support for STM32 EXTI triggers

2017-02-06 Thread Fabrice Gasnier
On 02/04/2017 12:39 PM, Jonathan Cameron wrote: On 03/02/17 19:40, Linus Walleij wrote: On Mon, Jan 30, 2017 at 3:33 PM, Fabrice Gasnier wrote: EXTi[0..15] gpio signal can be routed internally as trigger source for ADC or DAC conversions. Configure them as interrupts

Re: [PATCH v2 4/5] iio: trigger: add support for STM32 EXTI triggers

2017-02-06 Thread Fabrice Gasnier
On 02/04/2017 12:39 PM, Jonathan Cameron wrote: On 03/02/17 19:40, Linus Walleij wrote: On Mon, Jan 30, 2017 at 3:33 PM, Fabrice Gasnier wrote: EXTi[0..15] gpio signal can be routed internally as trigger source for ADC or DAC conversions. Configure them as interrupts to configure trigger

Re: [PATCH v2 4/5] iio: trigger: add support for STM32 EXTI triggers

2017-02-05 Thread Jonathan Cameron
cc'd Thomas in at this point in the thread to give as much info as possible. This is the driver effectively (ab)using an irq to hook up internal connections in the hardware. Anything similar out there we could look at for ideas on this? On 04/02/17 11:39, Jonathan Cameron wrote: > On 03/02/17

Re: [PATCH v2 4/5] iio: trigger: add support for STM32 EXTI triggers

2017-02-05 Thread Jonathan Cameron
cc'd Thomas in at this point in the thread to give as much info as possible. This is the driver effectively (ab)using an irq to hook up internal connections in the hardware. Anything similar out there we could look at for ideas on this? On 04/02/17 11:39, Jonathan Cameron wrote: > On 03/02/17

Re: [PATCH v2 4/5] iio: trigger: add support for STM32 EXTI triggers

2017-02-04 Thread Linus Walleij
On Sat, Feb 4, 2017 at 12:39 PM, Jonathan Cameron wrote: > On 03/02/17 19:40, Linus Walleij wrote: >>> + if (ret) { >>> + dev_err(>dev, "request IRQ %d failed\n", irq); >>> + return ret; >>> + } >> >> Here

Re: [PATCH v2 4/5] iio: trigger: add support for STM32 EXTI triggers

2017-02-04 Thread Linus Walleij
On Sat, Feb 4, 2017 at 12:39 PM, Jonathan Cameron wrote: > On 03/02/17 19:40, Linus Walleij wrote: >>> + if (ret) { >>> + dev_err(>dev, "request IRQ %d failed\n", irq); >>> + return ret; >>> + } >> >> Here you need some

Re: [PATCH v2 4/5] iio: trigger: add support for STM32 EXTI triggers

2017-02-04 Thread Jonathan Cameron
On 03/02/17 19:40, Linus Walleij wrote: > On Mon, Jan 30, 2017 at 3:33 PM, Fabrice Gasnier > wrote: > >> EXTi[0..15] gpio signal can be routed internally as trigger source for >> ADC or DAC conversions. Configure them as interrupts to configure >> trigger path in HW. >>

Re: [PATCH v2 4/5] iio: trigger: add support for STM32 EXTI triggers

2017-02-04 Thread Jonathan Cameron
On 03/02/17 19:40, Linus Walleij wrote: > On Mon, Jan 30, 2017 at 3:33 PM, Fabrice Gasnier > wrote: > >> EXTi[0..15] gpio signal can be routed internally as trigger source for >> ADC or DAC conversions. Configure them as interrupts to configure >> trigger path in HW. >> >> Note: interrupt

Re: [PATCH v2 4/5] iio: trigger: add support for STM32 EXTI triggers

2017-02-03 Thread Linus Walleij
On Mon, Jan 30, 2017 at 3:33 PM, Fabrice Gasnier wrote: > EXTi[0..15] gpio signal can be routed internally as trigger source for > ADC or DAC conversions. Configure them as interrupts to configure > trigger path in HW. > > Note: interrupt handler isn't required here, and

Re: [PATCH v2 4/5] iio: trigger: add support for STM32 EXTI triggers

2017-02-03 Thread Linus Walleij
On Mon, Jan 30, 2017 at 3:33 PM, Fabrice Gasnier wrote: > EXTi[0..15] gpio signal can be routed internally as trigger source for > ADC or DAC conversions. Configure them as interrupts to configure > trigger path in HW. > > Note: interrupt handler isn't required here, and corresponding interrupt

[PATCH v2 4/5] iio: trigger: add support for STM32 EXTI triggers

2017-01-30 Thread Fabrice Gasnier
EXTi[0..15] gpio signal can be routed internally as trigger source for ADC or DAC conversions. Configure them as interrupts to configure trigger path in HW. Note: interrupt handler isn't required here, and corresponding interrupt can be kept masked at exti controller level. Signed-off-by:

[PATCH v2 4/5] iio: trigger: add support for STM32 EXTI triggers

2017-01-30 Thread Fabrice Gasnier
EXTi[0..15] gpio signal can be routed internally as trigger source for ADC or DAC conversions. Configure them as interrupts to configure trigger path in HW. Note: interrupt handler isn't required here, and corresponding interrupt can be kept masked at exti controller level. Signed-off-by: