From: Hans de Goede <hansg@kernel.org>
To: Jonathan Cameron <jic23@kernel.org>,
David Lechner <dlechner@baylibre.com>,
Andy Shevchenko <andy@kernel.org>
Cc: Matteo Martelli <matteomartelli3@gmail.com>,
Liam Beguin <liambeguin@gmail.com>,
linux-iio@vger.kernel.org
Subject: Re: [PATCH v4 0/6] iio: processed channel handling fixes + Intel Dollar Cove TI PMIC ADC driver
Date: Fri, 22 Aug 2025 13:05:01 +0200 [thread overview]
Message-ID: <fc29e932-0c05-445e-b6a4-f40d47f07319@kernel.org> (raw)
In-Reply-To: <20250811155453.31525-1-hansg@kernel.org>
Hi All,
On 11-Aug-25 5:54 PM, Hans de Goede wrote:
> Hi All,
>
> Here is v4 of my patch to add an IIO driver for the Intel Dollar Cove TI
> PMIC ADC. This has turned more into a series with fixes / changes
> to iio_convert_raw_to_processed() and iio_read_channel_processed_scale(),
> with the new driver tagged on as the last patch :)
Thank you for all the review comments.
I was away for vacation and I'm catching up on email now.
I agree with all the review comments and I'll prepare a v5
addressing the review comments when I can make some time for this.
Regards,
Hans
> Changes in v4:
> - 2 new bug-fixes for iio_convert_raw_to_processed()
> - Factor the bugfixed code multiply a s64 and an iio (type, val, val2)
> triplet out of iio_convert_raw_to_processed() into a new
> iio_multiply_value() helper
> - Add a kunit test for iio_multiply_value()
> - Redo the "Improve iio_read_channel_processed_scale() precision"
> patch using the iio_multiply_value() helper
>
> Changes in v3:
> - "iio: Improve iio_read_channel_processed_scale() precision"
> - Use div_s64() instead of div_u64() to fix -1.0 - 0.0 range
> - Directly return IIO_VAL_INT from valid cases and drop the final
> return ret after the switch-case
> - "iio: adc: Add Intel Dollar Cove TI PMIC ADC driver"
> - Use new more compact DC_TI_ADC_DATA_REG_CH(x) macro
> - Use regmap_set_bits() regmap_clear_bits() where applicable
> - Use regmap_bulk_read() + be16_to_cpu() to read ADC value
> - Use sign_extend32() for vbat_zse and vbat_ge reading in probe()
>
> Changes in v2:
> - Add new "iio: Improve iio_read_channel_processed_scale() precision"
> patch to the series
> - Add IIO_CHAN_INFO_SCALE and provide ADC scale info for Vbat
> - Add IIO_CHAN_INFO_PROCESSED which applies calibration and
> scaling for the VBat channel
> - Address some other small review remarks
>
> Regards,
>
> Hans
>
>
> Hans de Goede (6):
> iio: consumers: Fix handling of negative channel scale in
> iio_convert_raw_to_processed()
> iio: consumers: Fix offset handling in iio_convert_raw_to_processed()
> iio: consumers: Add an iio_multiply_value() helper function
> iio: Improve iio_read_channel_processed_scale() precision
> iio: test: Add kunit tests for iio_multiply_value()
> iio: adc: Add Intel Dollar Cove TI PMIC ADC driver
>
> drivers/iio/adc/Kconfig | 11 +
> drivers/iio/adc/Makefile | 1 +
> drivers/iio/adc/intel_dc_ti_adc.c | 327 +++++++++++++++++++++++++++
> drivers/iio/inkern.c | 77 ++++---
> drivers/iio/test/Kconfig | 12 +
> drivers/iio/test/Makefile | 1 +
> drivers/iio/test/iio-test-multiply.c | 209 +++++++++++++++++
> include/linux/iio/consumer.h | 18 ++
> 8 files changed, 621 insertions(+), 35 deletions(-)
> create mode 100644 drivers/iio/adc/intel_dc_ti_adc.c
> create mode 100644 drivers/iio/test/iio-test-multiply.c
>
prev parent reply other threads:[~2025-08-22 11:05 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-11 15:54 [PATCH v4 0/6] iio: processed channel handling fixes + Intel Dollar Cove TI PMIC ADC driver Hans de Goede
2025-08-11 15:54 ` [PATCH v4 1/6] iio: consumers: Fix handling of negative channel scale in iio_convert_raw_to_processed() Hans de Goede
2025-08-11 19:19 ` Andy Shevchenko
2025-08-12 15:57 ` Jonathan Cameron
2025-08-11 15:54 ` [PATCH v4 2/6] iio: consumers: Fix offset handling " Hans de Goede
2025-08-11 15:54 ` [PATCH v4 3/6] iio: consumers: Add an iio_multiply_value() helper function Hans de Goede
2025-08-11 19:34 ` Andy Shevchenko
2025-08-12 16:00 ` Jonathan Cameron
2025-08-11 15:54 ` [PATCH v4 4/6] iio: Improve iio_read_channel_processed_scale() precision Hans de Goede
2025-08-14 20:33 ` David Lechner
2025-08-11 15:54 ` [PATCH v4 5/6] iio: test: Add kunit tests for iio_multiply_value() Hans de Goede
2025-08-11 19:38 ` Andy Shevchenko
2025-08-16 13:41 ` Jonathan Cameron
2025-08-11 15:54 ` [PATCH v4 6/6] iio: adc: Add Intel Dollar Cove TI PMIC ADC driver Hans de Goede
2025-08-11 19:52 ` Andy Shevchenko
2025-08-31 9:18 ` Hans de Goede
2025-08-11 19:53 ` [PATCH v4 0/6] iio: processed channel handling fixes + " Andy Shevchenko
2025-08-22 11:05 ` Hans de Goede [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=fc29e932-0c05-445e-b6a4-f40d47f07319@kernel.org \
--to=hansg@kernel.org \
--cc=andy@kernel.org \
--cc=dlechner@baylibre.com \
--cc=jic23@kernel.org \
--cc=liambeguin@gmail.com \
--cc=linux-iio@vger.kernel.org \
--cc=matteomartelli3@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;
as well as URLs for NNTP newsgroup(s).