Re: [PATCH v2] iio: pressure: dps310: don't wait for new temperature in trigger handler

From: Jonathan Cameron

Date: Sat Nov 14 2026 - 20:02:23 EST


On Sat, 14 Nov 2026 10:35:25 +0200
Rupesh Majhi <zoone.rupert@xxxxxxxxx> wrote:

> On Sat, 14 Nov 2026 01:38:17 +0000
> Jonathan Cameron <jic23@xxxxxxxxxx> wrote:
>
> > > Read pressure first and take the latest temperature, as a direct
> > > pressure read already does. Wait for temperature only when pressure is
> > > not in the scan. Read a temperature in probe, so there is a latest one
> > > from the first scan on.
> >
> > That was potentially a while back. Why not do it in preenable for the buffer?
> > Will make the buffer start a bit slow but should 'work' from there on.
>
> Probe value only lasts until the next temperature result. By the
> time the buffer starts TMP_RDY is set, so first scan takes a new
> temperature anyway (checked on the board, buffer enabled 5 s after
> probe). The probe read also covers direct pressure reads.
I'm a bit lost. So how stale can it be in the direct pressure read case?

Sounds like the buffer one is fine.

J
>
> Happy to move it to preenable if you prefer.
>
> Thanks,
> Rupesh