public inbox for linux-kernel-mentees@lists.linux-foundation.org
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Gabriel Shahrouzi <gshahrouzi@gmail.com>
Cc: Marcelo Schmitt <marcelo.schmitt1@gmail.com>,
	gregkh@linuxfoundation.org, lars@metafoo.de,
	linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-staging@lists.linux.dev, Michael.Hennerich@analog.com,
	skhan@linuxfoundation.org, linux-kernel-mentees@lists.linux.dev,
	stable@vger.kernel.org
Subject: Re: [PATCH] iio: frequency: Use SLEEP bit instead of RESET to disable output
Date: Mon, 21 Apr 2025 12:07:49 +0100	[thread overview]
Message-ID: <20250421120749.66b04533@jic23-huawei> (raw)
In-Reply-To: <CAKUZ0zLMAZFHwvuqfoL6JZfphYRhtjkqOyi50_ZffbA7-4MCew@mail.gmail.com>

On Sat, 19 Apr 2025 21:41:50 -0400
Gabriel Shahrouzi <gshahrouzi@gmail.com> wrote:

> On Sat, Apr 19, 2025 at 5:45 PM Marcelo Schmitt
> <marcelo.schmitt1@gmail.com> wrote:
> >
> > On 04/17, Gabriel Shahrouzi wrote:  
> > > According to the AD9832 datasheet (Table 10, D12 description), setting
> > > the RESET bit forces the phase accumulator to zero, which corresponds to
> > > a full-scale DC output, rather than disabling the output signal.
> > >
> > > The correct way to disable the output and enter a low-power state is to
> > > set the AD9832_SLEEP bit (Table 10, D13 description), which powers down
> > > the internal DAC current sources and disables internal clocks.
> > >
> > > Fixes: ea707584bac1 ("Staging: IIO: DDS: AD9832 / AD9835 driver")
> > > Cc: stable@vger.kernel.org
> > > Signed-off-by: Gabriel Shahrouzi <gshahrouzi@gmail.com>
> > > ---  
> > Looks okay.
> >
> > Reviewed-by: Marcelo Schmitt <marcelo.schmitt1@gmail.com>
> >
> > Unrelated to this patch but, if anybody be looking to work on getting this out
> > of staging, I think maybe this driver could use out_altvoltage_powerdown ABI
> > instead of this custom out_altvoltageX_out_enable.
> > Crazy thing this driver doesn't declare a single IIO channel.
> > Seems to be somewhat ancient IIO driver.  
> I can start tackling this.
This has crossed with a series from Siddarth.

Take a look at what is in:
https://web.git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git/commit/?h=testing&id=aa703203cbbca22ac46d42d4cd41232491827152

Please rebase this one on top of that as I think the bug is still there?

Given there is work going on for this driver and the bugs are ancient, I'll
not take any patches through the fixes tree for now. Instead I'll just queue
them up for the next merge window.

Thanks,

Jonathan

> >
> > Regards,
> > Marcelo  
> 


  reply	other threads:[~2025-04-21 11:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-17 13:54 [PATCH] iio: frequency: Use SLEEP bit instead of RESET to disable output Gabriel Shahrouzi
2025-04-18 15:40 ` Jonathan Cameron
2025-04-18 17:01   ` Gabriel Shahrouzi
2025-04-19 21:46 ` Marcelo Schmitt
2025-04-20  1:41   ` Gabriel Shahrouzi
2025-04-21 11:07     ` Jonathan Cameron [this message]
2025-04-21 13:38       ` Gabriel Shahrouzi

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=20250421120749.66b04533@jic23-huawei \
    --to=jic23@kernel.org \
    --cc=Michael.Hennerich@analog.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=gshahrouzi@gmail.com \
    --cc=lars@metafoo.de \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel-mentees@lists.linux.dev \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=marcelo.schmitt1@gmail.com \
    --cc=skhan@linuxfoundation.org \
    --cc=stable@vger.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