Re: [PATCH] pps-gpio: use IRQ edge config when not capturing both edges

2017-09-12 Thread Rodolfo Giometti
On 12/09/2017 17:54, Tim Harvey wrote: On Sun, Sep 10, 2017 at 3:43 AM, Rodolfo Giometti wrote: On 08/09/2017 21:53, Tim Harvey wrote: PPS signals with very short pulse-widths can be missed if their state changes by the time the interrupt handler reads the GPIO pin state. To avoid this in th

Re: [PATCH] pps-gpio: use IRQ edge config when not capturing both edges

2017-09-12 Thread Tim Harvey
On Sun, Sep 10, 2017 at 3:43 AM, Rodolfo Giometti wrote: > On 08/09/2017 21:53, Tim Harvey wrote: >> >> PPS signals with very short pulse-widths can be missed if their state >> changes by the time the interrupt handler reads the GPIO pin state. >> >> To avoid this in the case where we are only loo

Re: [PATCH] pps-gpio: use IRQ edge config when not capturing both edges

2017-09-10 Thread Rodolfo Giometti
On 08/09/2017 21:53, Tim Harvey wrote: PPS signals with very short pulse-widths can be missed if their state changes by the time the interrupt handler reads the GPIO pin state. To avoid this in the case where we are only looking for one edge we can use the edge configuration for the pin state bu

[PATCH] pps-gpio: use IRQ edge config when not capturing both edges

2017-09-08 Thread Tim Harvey
PPS signals with very short pulse-widths can be missed if their state changes by the time the interrupt handler reads the GPIO pin state. To avoid this in the case where we are only looking for one edge we can use the edge configuration for the pin state but fall back to reading the pin if both ed