mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Neil Armstrong <neil.armstrong@linaro.org>
Cc: "David Lechner" <dlechner@baylibre.com>,
	"Nuno Sá" <nuno.sa@analog.com>,
	"Andy Shevchenko" <andy@kernel.org>,
	"Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 0/2] iio: adc: add support for the MAX34417 Four-Channel High Dynamic Range Power Accumulator
Date: Sun, 27 Sep 2026 19:50:30 +0100	[thread overview]
Message-ID: <20260927195030.6c210d90@jic23-hlaptop> (raw)
In-Reply-To: <9be6cfd1-5cb6-4437-b253-1590292b8cbf@linaro.org>

On Fri, 25 Sep 2026 10:12:32 +0200
Neil Armstrong <neil.armstrong@linaro.org> wrote:

> Hi Jonathan,
> 
> On 9/25/26 05:13, Jonathan Cameron wrote:
> > On Thu, 24 Sep 2026 15:14:14 +0200
> > Neil Armstrong <neil.armstrong@linaro.org> wrote:
> >   
> >> The MAX34417 is a specialized current and voltage monitor used to determine
> >> power consumption of portable systems. The driver support getting the channel
> >> voltage and accumulated average power over an I2C/SMBUS serial interface.
> >>
> >> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>  
> > 
> > Hi Neil,
> > 
> > As pointed out too fast for a v2.  You aren't new upstream so
> > that shouldn't come as a surprise!  
> 
> Yeah sorry, but with the initial feedback v1 was far form beeing
> acceptable, will adjust timings for next versions.
> 
> > 
> > Secondly for devices that are all about monitoring power supplies
> > etc we always ask for a clear statement of why IIO rather than
> > hwmon + to CC at least the maintainer and often the hwmon list.  
> 
> Sure, thanks for the suggestion.
> 
> > 
> > There are various valid reasons for that choice, but it is good
> > if they are clearly stated for discussion.  
> 
> I don't honestly have an strong opinion on that, for me IIO offers
> much more options to retrieve data from the sensor and adding the
> complex feature offered. The IIO triggers for example would
> perfectly match with the bulk readout we coulnd't implement with
> the hwmon API.

Ok. Just lay some of that reasoning out in v3 and include HWMON folk
and see what they think.

Jonathan

> 
> Thanks,
> Neil
> 
> > 
> > Thanks,
> > 
> > Jonathan
> >   
> >> ---
> >> Changes in v2:
> >> - switch to shunt-resistor-micro-ohms no more required
> >> - removed gpio.h from example
> >> - Fixed max34417->MAX34417 in Kconfig and comments
> >> - Added missing includes and remove unneeded
> >> - Fixed typos in comments
> >> - Switched to fsleep()
> >> - Better aligned max34417_read_power declararation
> >> - Handled 0 acc_count
> >> - Switched to GENMASK_ULL() for 32bits systems
> >> - Added missing empty lines
> >> - Moved the input correction into a helper
> >> - Set default input correction for all channels
> >> - Switched to dev_err_probe() to return from probe
> >> - Switched to device_for_each_child_node_scoped()
> >> - Handled invalid shunt-resistor-micro-ohms value
> >> - Link to v1: https://patch.msgid.link/20260923-topic-sm8x50-iio-max34417-adc-v1-0-41d4ba1bfc41@linaro.org
> >>
> >> ---
> >> Neil Armstrong (2):
> >>        dt-bindings: iio: add: document the MAX34417 Four-Channel High Dynamic Range Power Accumulator
> >>        iio: adc: add driver for the MAX34417 Four-Channel High Dynamic Range Power Accumulator
> >>
> >>   .../bindings/iio/adc/maxim,max34417.yaml           | 100 ++++++
> >>   drivers/iio/adc/Kconfig                            |  11 +
> >>   drivers/iio/adc/Makefile                           |   1 +
> >>   drivers/iio/adc/max34417.c                         | 374 +++++++++++++++++++++
> >>   4 files changed, 486 insertions(+)
> >> ---
> >> base-commit: fd73f4a6659897191fa0d40695fe370925dd3780
> >> change-id: 20260923-topic-sm8x50-iio-max34417-adc-209e880533fb
> >>
> >> Best regards,
> >> --
> >> Neil Armstrong <neil.armstrong@linaro.org>
> >>  
> >   
> 


      reply	other threads:[~2026-09-27 18:50 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-24 13:14 Neil Armstrong
2026-09-24 13:14 ` [PATCH v2 1/2] dt-bindings: iio: add: document " Neil Armstrong
2026-09-24 16:43   ` Conor Dooley
2026-09-29  7:37   ` Krzysztof Kozlowski
2026-09-24 13:14 ` [PATCH v2 2/2] iio: adc: add driver for " Neil Armstrong
2026-09-24 15:13   ` Joshua Crofts
2026-09-25  3:26   ` Jonathan Cameron
2026-09-25  8:46     ` Neil Armstrong
2026-09-27 18:28       ` Jonathan Cameron
2026-09-25  3:13 ` [PATCH v2 0/2] iio: adc: add support " Jonathan Cameron
2026-09-25  8:12   ` Neil Armstrong
2026-09-27 18:50     ` 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=20260927195030.6c210d90@jic23-hlaptop \
    --to=jic23@kernel.org \
    --cc=andy@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=neil.armstrong@linaro.org \
    --cc=nuno.sa@analog.com \
    --cc=robh@kernel.org \
    /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®