mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Rupesh Majhi <zoone.rupert@gmail.com>
To: "Andy Shevchenko" <andy@kernel.org>,
	"Bill Wendling" <morbo@google.com>,
	"David Lechner" <dlechner@baylibre.com>,
	"Eddie James" <eajames@linux.ibm.com>,
	"Jonathan Cameron" <jic23@kernel.org>,
	"Justin Stitt" <justinstitt@google.com>,
	"Nathan Chancellor" <nathan@kernel.org>,
	"Nick Desaulniers" <ndesaulniers@google.com>,
	"Nuno Sá" <nuno.sa@analog.com>
Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
	llvm@lists.linux.dev, Rupesh Majhi <zoone.rupert@gmail.com>
Subject: [PATCH v12 0/5] iio: pressure: dps310: hardware FIFO support
Date: Sat,  3 Oct 2026 22:50:06 +0300	[thread overview]
Message-ID: <20261003195012.92948-1-zoone.rupert@gmail.com> (raw)

Rest of FIFO series, on iio/togreg which has 1-6 and 10 of v8.

Since v11:
 - patch 1: blank line, Reviewed-by Andy
 - patch 2: guard() in postenable, setup moved to a helper that kfree()s
   on error, scoped_guard() in fifo_work, loop counters in the for,
   ternary on one line, two comments trimmed. The first loop in
   fifo_drain keeps cnt outside, it is used after the loop.
 - patch 3: signature wrapped
 - patch 4: drain comment and commit message trimmed
 - patch 5: Suggested-by Andy back, assert in the new helper too, still
   optional

Pressure overflow fix is now at v4:
https://lore.kernel.org/linux-iio/20261003185716.32732-1-zoone.rupert@gmail.com/
Patches 1 and 5 conflict trivially with it. I can rebase on whichever
goes in first.

Retested on DPS310 with BeagleBone Black. Lockdep run under QEMU.

v11: https://lore.kernel.org/linux-iio/20261002072526.250081-1-zoone.rupert@gmail.com/

Rupesh Majhi (5):
  iio: pressure: dps310: use devm_mutex_init()
  iio: pressure: dps310: read buffered samples from the hardware FIFO
  iio: pressure: dps310: derive the drain interval from the watermark
  iio: pressure: dps310: implement .hwfifo_flush_to_buffer()
  iio: pressure: dps310: assert the lock at runtime too

 drivers/iio/pressure/dps310.c | 441 +++++++++++++++++++++++++++++++++-
 1 file changed, 430 insertions(+), 11 deletions(-)


base-commit: a3b3580713f3ac5a32dc2874ee546828977a1d68
-- 
2.43.0


             reply	other threads:[~2026-10-03 19:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-03 19:50 Rupesh Majhi [this message]
2026-10-03 19:50 ` [PATCH v12 1/5] iio: pressure: dps310: use devm_mutex_init() Rupesh Majhi
2026-10-03 19:50 ` [PATCH v12 2/5] iio: pressure: dps310: read buffered samples from the hardware FIFO Rupesh Majhi
2026-10-03 19:50 ` [PATCH v12 3/5] iio: pressure: dps310: derive the drain interval from the watermark Rupesh Majhi
2026-10-03 19:50 ` [PATCH v12 4/5] iio: pressure: dps310: implement .hwfifo_flush_to_buffer() Rupesh Majhi
2026-10-03 19:50 ` [PATCH v12 5/5] iio: pressure: dps310: assert the lock at runtime too 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=20261003195012.92948-1-zoone.rupert@gmail.com \
    --to=zoone.rupert@gmail.com \
    --cc=andy@kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=eajames@linux.ibm.com \
    --cc=jic23@kernel.org \
    --cc=justinstitt@google.com \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=morbo@google.com \
    --cc=nathan@kernel.org \
    --cc=ndesaulniers@google.com \
    --cc=nuno.sa@analog.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®