Hi Matti, On Fri, Feb 17, 2023 at 09:55:33PM +0200, Matti Vaittinen wrote: > On 2/17/23 21:52, Matti Vaittinen wrote: > > On 2/17/23 21:19, Mehdi Djait wrote: > > > The trigger_handler gets called from the IRQ thread handler using > > > iio_trigger_poll_chained() which will only call the bottom half of the > > > pollfunc and therefore pf->timestamp will not get set. > > > > > > Use instead the timestamp from the driver's private data which is always > > > set in the IRQ handler. > > > > > > Signed-off-by: Mehdi Djait <mehdi.djait.k@xxxxxxxxx> > > > > Reviewed-by: Matti Vaittinen <mazziesaccount@xxxxxxxxx> > > > > Oh. I just noticed there is no Fixes tag. It'd be good to have one as it > usually helps fixes like this being back-ported to stable. > I will add the Fixes tag and send the patch again. -- Kind Regards Mehdi Djait