mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Chi-Wen Weng <cwweng.linux@gmail.com>
Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
	dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org,
	linux-arm-kernel@lists.infradead.org, linux-iio@vger.kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	cwweng@nuvoton.com
Subject: Re: [PATCH v3 2/2] iio: adc: Add Nuvoton MA35D1 EADC driver
Date: Mon, 2 Nov 2026 22:17:44 +0000	[thread overview]
Message-ID: <20261102221744.4bd13ae6@jic23-hlaptop> (raw)
In-Reply-To: <81173139-a43c-48a4-97c7-0a82de158b3e@gmail.com>


> >   
> 
> Hi Jonathan,
> 
> Thank you for the detailed review.
> 
> I will address these comments in v4.
Hi,

A couple of process things.

Most of this didn't need a reply at all.  When you agree with feedback
and plan to modify the code, keep any description of that for
the change log of v2.

Also, reply inline to individual comments. The reviewer has probably 
forgotten most of the details of what they commented on and so
has to do the tiresome step of reading their own reply and then correlating
that with what you have at the end.  If you reply inline as I did during
the review, the context they need is right there.  Keep to tight
focused comments where you want further feedback or disagree with the
review.

...

> 
> Regarding the one-hot scan-mask handling, the MA35D1 hardware itself is
> not limited to one sample module at a time. The EADC has one SAR
> converter shared by multiple sample modules. Multiple sample modules can
> be triggered together, after which the hardware priority arbitrator
> performs their conversions sequentially.
> 
> The initial driver, however, currently uses only sample module 0 and
> performs one voltage conversion for each buffered trigger. Therefore
> the buffered interface exposed by this version of the driver supports
> one active voltage channel per scan. I will make this limitation
> explicit using the standard one-hot scan-mask validation callback and
> use iio_for_each_active_channel() when selecting the active channel.
> Support for using multiple sample modules for multi-channel buffered
> scans can be added separately in the future.

This part would have been helpful inline next to the comment it is addressing.

> 
> Since the scan layout is therefore fixed to one u16 sample plus an
> optional timestamp, I will replace IIO_DECLARE_BUFFER_WITH_TS() with a
> fixed scan structure containing one u16 sample and an aligned timestamp.

Jonathan


  reply	other threads:[~2026-11-02 22:17 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-30  3:14 [PATCH v3 0/2] iio: adc: Add Nuvoton MA35D1 EADC support Chi-Wen Weng
2026-10-30  3:15 ` [PATCH v3 1/2] dt-bindings: iio: adc: Add Nuvoton MA35D1 EADC Chi-Wen Weng
2026-11-01  0:19   ` Jonathan Cameron
2026-11-02  2:38     ` Chi-Wen Weng
2026-11-02 10:03   ` Krzysztof Kozlowski
2026-11-02 10:20     ` Chi-Wen Weng
2026-10-30  3:15 ` [PATCH v3 2/2] iio: adc: Add Nuvoton MA35D1 EADC driver Chi-Wen Weng
2026-11-01  0:53   ` Jonathan Cameron
2026-11-02  4:22     ` Chi-Wen Weng
2026-11-02 22:17       ` Jonathan Cameron [this message]
2026-11-03 11:00   ` Andy Shevchenko

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=20261102221744.4bd13ae6@jic23-hlaptop \
    --to=jic23@kernel.org \
    --cc=andy@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=cwweng.linux@gmail.com \
    --cc=cwweng@nuvoton.com \
    --cc=devicetree@vger.kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.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®