The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: "Nuno Sá" <noname.nuno@gmail.com>
Cc: "David Lechner" <dlechner@baylibre.com>,
	"Michael Hennerich" <Michael.Hennerich@analog.com>,
	"Nuno Sá" <nuno.sa@analog.com>,
	"Andy Shevchenko" <andy@kernel.org>,
	linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] iio: adc: ad7124: add debugfs to disable single cycle mode
Date: Sat, 20 Sep 2025 12:00:14 +0100	[thread overview]
Message-ID: <20250920120014.2c4b6701@jic23-huawei> (raw)
In-Reply-To: <d20225be2339e7b08f65edf18f9fa71ae5840f0c.camel@gmail.com>

On Thu, 18 Sep 2025 11:34:48 +0100
Nuno Sá <noname.nuno@gmail.com> wrote:

> On Wed, 2025-09-17 at 18:03 -0500, David Lechner wrote:
> > Add a boolean debugfs attribute to allow disabling the SINGLE_CYCLE
> > bit in the FILTER registers.
> > 
> > This causes data to be read on every conversion instead of doing the
> > usual 3 or 4 conversions per sample (depending on the filter). This is
> > only needed for very specific use cases, such as validating the
> > performance of the ADC. So we just expose this feature through debugfs
> > for the rare cases where it is needed by people who really know what
> > they are doing.
> > 
> > Signed-off-by: David Lechner <dlechner@baylibre.com>
> > ---
> > In a recent discussion with an engineer who has used these chips a lot,
> > we confirmed that we made the right choice in [1] about always enabling
> > the SINGLE_CYCLE bit. That is what is needed in normal operation and is
> > the expected behavior.
> > 
> > But there are some occasions where we might want to turn it off for
> > hardware debugging (e.g. to peer into what the filter on the ADC is
> > doing). Hence, this patch to add a debugfs entry to allow it.
> > 
> > FYI, there will be some trivial fuzz between this patch and the "iio:
> > adc: ad7124: change setup reg allocation strategy" patch, but I expect
> > changes to be requested on that one, so will likely work itself out
> > by the time it actually gets picked up.
> > 
> > [1]:
> > https://lore.kernel.org/linux-iio/20250910-iio-adc-ad7124-fix-samp-freq-for-multi-channel-v4-1-8ca624c6114c@baylibre.com/
> > ---  
> 
> Reviewed-by: Nuno Sá <nuno.sa@analog.com>
> 
Applied to the testing branch of iio.git.  Unless the merge window is delayed,
this will be material for next cycle now.

Thanks,

Jonathan

      reply	other threads:[~2025-09-20 11:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-17 23:03 [PATCH] iio: adc: ad7124: add debugfs to disable single cycle mode David Lechner
2025-09-18 10:34 ` Nuno Sá
2025-09-20 11:00   ` 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=20250920120014.2c4b6701@jic23-huawei \
    --to=jic23@kernel.org \
    --cc=Michael.Hennerich@analog.com \
    --cc=andy@kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=noname.nuno@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