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

From: Rupesh Majhi

Date: Sat Nov 14 2026 - 03:35:44 EST


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.

Happy to move it to preenable if you prefer.

Thanks,
Rupesh