mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Rupesh Majhi <zoone.rupert@gmail.com>
Cc: "Andy Shevchenko" <andy@kernel.org>,
	"David Lechner" <dlechner@baylibre.com>,
	"Eddie James" <eajames@linux.ibm.com>,
	"Nuno Sá" <nuno.sa@analog.com>,
	"Jonathan Cameron" <jonathan.cameron@oss.qualcomm.com>,
	linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
	Sashiko <sashiko-bot@kernel.org>,
	"Arnav Kapoor" <kapoorarnav43@gmail.com>
Subject: Re: [PATCH v2] iio: pressure: dps310: don't wait for new temperature in trigger handler
Date: Sun, 15 Nov 2026 20:34:11 +0000	[thread overview]
Message-ID: <20261115203150.7faed0b1@jic23-hlaptop> (raw)
In-Reply-To: <20261115183949.11591-1-zoone.rupert@gmail.com>

On Sun, 15 Nov 2026 20:39:49 +0200
Rupesh Majhi <zoone.rupert@gmail.com> wrote:

> On Sun, 15 Nov 2026 01:02:03 +0000
> Jonathan Cameron <jic23@kernel.org> 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


  reply	other threads:[~2026-11-15 20:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-13 23:02 Rupesh Majhi
2026-11-14  1:38 ` Jonathan Cameron
2026-11-14  8:35   ` Rupesh Majhi
2026-11-15  1:02     ` Jonathan Cameron
2026-11-15 18:39       ` Rupesh Majhi
2026-11-15 20:34         ` Jonathan Cameron [this message]
2026-11-15 22:38           ` Rupesh Majhi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261115203150.7faed0b1@jic23-hlaptop \
    --to=jic23@kernel.org \
    --cc=andy@kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=eajames@linux.ibm.com \
    --cc=jonathan.cameron@oss.qualcomm.com \
    --cc=kapoorarnav43@gmail.com \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nuno.sa@analog.com \
    --cc=sashiko-bot@kernel.org \
    --cc=zoone.rupert@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®