From: Jonathan Cameron <jic23@kernel.org>
To: Antoni Pokusinski <apokusinski01@gmail.com>
Cc: dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org,
marcelo.schmitt1@gmail.com, linux-iio@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4 0/3] iio: mpl3115: support for events
Date: Sat, 15 Nov 2025 18:07:42 +0000 [thread overview]
Message-ID: <20251115180742.75ea99f6@jic23-huawei> (raw)
In-Reply-To: <20251112225701.32158-1-apokusinski01@gmail.com>
On Wed, 12 Nov 2025 23:56:58 +0100
Antoni Pokusinski <apokusinski01@gmail.com> wrote:
> Hello,
> The mpl3115 device can raise interrupts when a pressure or temperature
> threshold is crossed, this patchset adds support for them using IIO's
> events interface.
>
> In v4 mostly some minor variable rename changes and a comment in
> read_info_raw according to the review in v3.
Looks good to me, thanks.
Applied to the togreg branch of iio.git but initially pushed out as
testing to let the build bots poke at it and see if they can find
anything we missed.
Thanks,
Jonathan
>
> Kind regards,
> Antoni Pokusinski
>
> ---
> Changes since v3:
> (patch 1/3 "use get_unaligned_be24() to retrieve pressure data")
> * commit msg: "get_unaligned_be24" -> "get_unaligned_be24()"
> * read_info_raw: renamed "tmp[3]" -> "press_be24[3]"
> * read_info_raw: added comment at pressure val computation
> (patch 2/3 "add threshold support")
> * interrupt_handler: added sizeof() in a i2c_read_i2c_block call
> * read_thresh: renamed "tmp" -> "press_tgt"
> * write_thresh: renamed "tmp" -> "press_tgt"
>
> Changes since v2:
> (general)
> * added the patch tidying up the pressure data retrieval (u8[3] used)
> (patch 2/3 "add threshold support")
> * includes: removed unused linux/units.h
> * read_thresh: fixed comment formatting
> * interrupt_handler: val_press is now u8[3] instead of __be32
>
> Changes since v1:
> (general)
> * squashed the cleanup patch
> * added the patch with the documentation update
> (patch 1/2 "add threshold event support")
> * patch description: explained changes in locking
> * read_event_config: replaced switch with ifs
> * read_event_config: return as early as possible, got rid of int_en_mask
> * read/write_thresh: pressure: calculation changes to comply with raw ABI
> * interrupt_handler: reordered the INT_SRC_* bits in if condition
> * read/write_thresh: used sizeof() and values from limits.h
> * write_thresh: replaced `u8 tmp[2]` with `__be16 tmp`
> * dropped the space between casting `(u8 *) &tmp`
>
>
> Antoni Pokusinski (3):
> iio: mpl3115: use get_unaligned_be24() to retrieve pressure data
> iio: mpl3115: add threshold events support
> iio: ABI: document pressure event attributes
>
> Documentation/ABI/testing/sysfs-bus-iio | 2 +
> drivers/iio/pressure/mpl3115.c | 234 ++++++++++++++++++++++--
> 2 files changed, 223 insertions(+), 13 deletions(-)
>
>
> base-commit: 1d09cf18cc91d29f650ad9811ed4868d9304d6c7
prev parent reply other threads:[~2025-11-15 18:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-12 22:56 [PATCH v4 0/3] iio: mpl3115: support for events Antoni Pokusinski
2025-11-12 22:56 ` [PATCH v4 1/3] iio: mpl3115: use get_unaligned_be24() to retrieve pressure data Antoni Pokusinski
2025-11-12 22:57 ` [PATCH v4 2/3] iio: mpl3115: add threshold events support Antoni Pokusinski
2025-11-12 22:57 ` [PATCH v4 3/3] iio: ABI: document pressure event attributes Antoni Pokusinski
2025-11-15 18:07 ` Jonathan Cameron [this message]
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=20251115180742.75ea99f6@jic23-huawei \
--to=jic23@kernel.org \
--cc=andy@kernel.org \
--cc=apokusinski01@gmail.com \
--cc=dlechner@baylibre.com \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo.schmitt1@gmail.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