Linux IIO development
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: "Nuno Sá" <noname.nuno@gmail.com>
Cc: "Kim Seer Paller" <kimseer.paller@analog.com>,
	"Lars-Peter Clausen" <lars@metafoo.de>,
	"Michael Hennerich" <Michael.Hennerich@analog.com>,
	"David Lechner" <dlechner@baylibre.com>,
	"Nuno Sá" <nuno.sa@analog.com>,
	"Andy Shevchenko" <andy@kernel.org>,
	"Jonathan Cameron" <Jonathan.Cameron@huawei.com>,
	linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] iio: dac: ad3530r: Fix incorrect masking for channels 4-7 in powerdown mode
Date: Sat, 28 Jun 2025 16:24:53 +0100	[thread overview]
Message-ID: <20250628162453.0848d93d@jic23-huawei> (raw)
In-Reply-To: <c0f4907eb762e618dcf64a6821320f814715be5f.camel@gmail.com>

On Fri, 27 Jun 2025 16:54:33 +0100
Nuno Sá <noname.nuno@gmail.com> wrote:

> On Thu, 2025-06-26 at 16:38 +0800, Kim Seer Paller wrote:
> > In the current implementation of ad3530r_set_dac_powerdown() function,
> > the macro AD3530R_OP_MODE_CHAN_MSK(chan->channel) is used to generate
> > the bitmask for the operating mode of a specific channel. However, this
> > macro does not account for channels 4-7, which map to the second
> > register AD3530R_OUTPUT_OPERATING_MODE_1 for the 8 channeled device. As
> > a result, the bitmask is incorrectly calculated for these channels,
> > leading to improper configuration of the powerdown mode. Resolve this
> > issue by adjusting the channel index for channels 4-7 by subtracting 4
> > before applying the macro. This ensures that the correct bitmask is
> > generated for the second register.
> > 
> > Fixes: 93583174a3df ("iio: dac: ad3530r: Add driver for AD3530R and AD3531R")
> > Signed-off-by: Kim Seer Paller <kimseer.paller@analog.com>
> > ---  
> 
> LGTM,
> 
> Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Applied to the fixes-togreg branch of iio.git and marked for stable.

Thanks,

Jonathan

      reply	other threads:[~2025-06-28 15:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-26  8:38 [PATCH] iio: dac: ad3530r: Fix incorrect masking for channels 4-7 in powerdown mode Kim Seer Paller
2025-06-27 15:37 ` David Lechner
2025-06-27 15:54 ` Nuno Sá
2025-06-28 15:24   ` 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=20250628162453.0848d93d@jic23-huawei \
    --to=jic23@kernel.org \
    --cc=Jonathan.Cameron@huawei.com \
    --cc=Michael.Hennerich@analog.com \
    --cc=andy@kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=kimseer.paller@analog.com \
    --cc=lars@metafoo.de \
    --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