Re: [PATCH net-next] net: dsa: sja1105: poll for extts events from a timer

2020-08-03 Thread David Miller
From: Vladimir Oltean Date: Mon, 3 Aug 2020 20:51:58 +0300 > The current poll interval is enough to ensure that rising and falling > edge events are not lost for a 1 PPS signal with 50% duty cycle. > > But when we deliver the events to user space, it will try to infer if > they were correspondi

Re: [PATCH net-next] net: dsa: sja1105: poll for extts events from a timer

2020-08-03 Thread Richard Cochran
On Mon, Aug 03, 2020 at 08:51:58PM +0300, Vladimir Oltean wrote: > The current poll interval is enough to ensure that rising and falling > edge events are not lost for a 1 PPS signal with 50% duty cycle. > Fix that by taking the following measures: > - Schedule the poll from a timer. Because we ar

[PATCH net-next] net: dsa: sja1105: poll for extts events from a timer

2020-08-03 Thread Vladimir Oltean
The current poll interval is enough to ensure that rising and falling edge events are not lost for a 1 PPS signal with 50% duty cycle. But when we deliver the events to user space, it will try to infer if they were corresponding to a rising or to a falling edge (the kernel driver doesn't know that