From: Jonathan Cameron <jic23@kernel.org>
To: "Nuno Sá" <nuno.sa@analog.com>
Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
Michael Hennerich <Michael.Hennerich@analog.com>,
David Lechner <dlechner@baylibre.com>,
Andy Shevchenko <andy@kernel.org>,
linux@analog.com
Subject: Re: [PATCH] iio: dac: adi-axi-dac: fix swapped arguments in axi_dac_set_sample_rate()
Date: Sat, 14 Nov 2026 01:12:29 +0000 [thread overview]
Message-ID: <20261114011229.59a52b91@jic23-hlaptop> (raw)
In-Reply-To: <20261113-iio-fix-axi-dac-v1-1-630da3648086@analog.com>
On Fri, 13 Nov 2026 14:47:51 +0000
Nuno Sá <nuno.sa@analog.com> wrote:
> When the interface sample rate changes, the DDS frequencies of both
> tones are read back and reprogrammed so they are preserved against the
> new rate. However, the tone index and the frequency were passed in the
> wrong order to __axi_dac_frequency_set().
>
> Pass the arguments in the order the function expects.
>
> Fixes: 4e3949a192e4 ("iio: dac: add support for AXI DAC IP core")
> Signed-off-by: Nuno Sá <nuno.sa@analog.com>
ouch. Applied to the fixes-togreg branch of iio.git and marked for stable.
Thanks,
J
> ---
> AI was used to generate the commit message which I looked at and removed
> the extra verbosity.
> ---
> drivers/iio/dac/adi-axi-dac.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/iio/dac/adi-axi-dac.c b/drivers/iio/dac/adi-axi-dac.c
> index f4f3bc67c68e..1e2f7f27292d 100644
> --- a/drivers/iio/dac/adi-axi-dac.c
> +++ b/drivers/iio/dac/adi-axi-dac.c
> @@ -596,7 +596,7 @@ static int axi_dac_set_sample_rate(struct iio_backend *back, unsigned int chan,
> if (ret)
> return ret;
>
> - ret = __axi_dac_frequency_set(st, chan, sample_rate, tone, freq);
> + ret = __axi_dac_frequency_set(st, chan, sample_rate, freq, tone);
> if (ret)
> return ret;
> }
>
> ---
> base-commit: b70566610b48ba49dec636019da4d696db64b085
> change-id: 20261113-iio-fix-axi-dac-b7b401cb06d4
> --
>
> Thanks!
> - Nuno Sá
>
prev parent reply other threads:[~2026-11-14 1:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-13 14:47 Nuno Sá
2026-11-14 1:12 ` 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=20261114011229.59a52b91@jic23-hlaptop \
--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=linux@analog.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
all inboxes | Powered by JetHome®