From: Jonathan Cameron <Jonathan.Cameron@huawei.com>
To: Angelo Dureghello <adureghello@baylibre.com>
Cc: Nuno Sa <nuno.sa@analog.com>,
Lars-Peter Clausen <lars@metafoo.de>,
Michael Hennerich <Michael.Hennerich@analog.com>,
Jonathan Cameron <jic23@kernel.org>,
David Lechner <dlechner@baylibre.com>,
Andy Shevchenko <andy@kernel.org>, <linux-iio@vger.kernel.org>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] iio: dac: adi-axi-dac: fix bus free check
Date: Thu, 22 May 2025 17:54:16 +0100 [thread overview]
Message-ID: <20250522175416.000047cb@huawei.com> (raw)
In-Reply-To: <20250522-iio-dac-adi-axi-dac-fix-bus-read-v1-1-26ec358c57bf@baylibre.com>
On Thu, 22 May 2025 18:47:31 +0200
Angelo Dureghello <adureghello@baylibre.com> wrote:
> From: Angelo Dureghello <adureghello@baylibre.com>
>
> This patch is intended to fix [1] that looks not yet accepted in any
> upstream branch.
>
> Poll function must check for a value equal to 0 (bus free condition).
>
> [1] https://lore.kernel.org/linux-iio/l6vu54ltxd7pydkzl6xbbq55gedumzbsllfxnljyngwcg4c6zd@w6qxgn2vby75/
>
> Signed-off-by: Angelo Dureghello <adureghello@baylibre.com>
Hi Angelo.
That was stalled due to tree shuffling. Given as you
observed it hasn't made it on to any tree yet, would you mind
squashing this in and posting a new version of that patch?
That will probably end up cleaner than me trying to remember to squash the two.
Thanks!
Jonathan
> ---
> 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 b6cfe07701d47440df478f7b9b4c579434b99a25..a0e546dba3680371e00dc4c8973d4f450c18cf2d 100644
> --- a/drivers/iio/dac/adi-axi-dac.c
> +++ b/drivers/iio/dac/adi-axi-dac.c
> @@ -641,7 +641,7 @@ static int axi_dac_wait_bus_free(struct axi_dac_state *st)
> int ret;
>
> ret = regmap_read_poll_timeout(st->regmap, AXI_DAC_UI_STATUS_REG, val,
> - FIELD_GET(AXI_DAC_UI_STATUS_IF_BUSY, val) == -1, 10,
> + FIELD_GET(AXI_DAC_UI_STATUS_IF_BUSY, val) == 0, 10,
> 100 * KILO);
> if (ret == -ETIMEDOUT)
> dev_err(st->dev, "AXI bus timeout\n");
>
> ---
> base-commit: 50b8b618e598468e35551003d7e5cc5db14ee113
> change-id: 20250522-iio-dac-adi-axi-dac-fix-bus-read-244fbc07313c
>
> Best regards,
next prev parent reply other threads:[~2025-05-22 16:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-22 16:47 [PATCH] iio: dac: adi-axi-dac: fix bus free check Angelo Dureghello
2025-05-22 16:54 ` Jonathan Cameron [this message]
2025-05-23 16:37 ` 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=20250522175416.000047cb@huawei.com \
--to=jonathan.cameron@huawei.com \
--cc=Michael.Hennerich@analog.com \
--cc=adureghello@baylibre.com \
--cc=andy@kernel.org \
--cc=dlechner@baylibre.com \
--cc=jic23@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--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