Re: [PATCH v2] iio: pressure: dps310: don't wait for new temperature in trigger handler
From: Jonathan Cameron
Date: Sun Nov 15 2026 - 15:34:25 EST
On Sun, 15 Nov 2026 20:39:49 +0200
Rupesh Majhi <zoone.rupert@xxxxxxxxx> wrote:
> On Sun, 15 Nov 2026 01:02:03 +0000
> Jonathan Cameron <jic23@xxxxxxxxxx> wrote:
>
> > > 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?
>
> One temperature period, so 1 s at the default 1 Hz. A direct pressure
> read takes new temperature result whenever TMP_RDY is set.
>
> Probe read is for a pressure read that comes before first
> temperature result after probe. That one would use temp_raw = 0.
That all sounds good. I tried to apply it to the testing branch of iio.git
but I'm getting some build errors (+ a load of fuzz). I guess this
has dependencies that I'm missing? If they are fixes, then I may just have
to wait until I can merge back into my tree (after they are upstream).
Anyhow, if you can figure out what I have wrong wrt to patches before this
then let know! + add that info to future patches.
Thanks,
Jonathan
>
> Thanks,
> Rupesh