mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Antoniu Miclaus <antoniu.miclaus@analog.com>
Cc: "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>,
	linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 5/7] iio: adc: ade9000: use dev_err_probe in probe path
Date: Sun, 22 Feb 2026 17:01:32 +0000	[thread overview]
Message-ID: <20260222170132.57f3e160@jic23-huawei> (raw)
In-Reply-To: <20260220131151.74329-6-antoniu.miclaus@analog.com>

On Fri, 20 Feb 2026 15:11:43 +0200
Antoniu Miclaus <antoniu.miclaus@analog.com> wrote:

> Replace dev_err() + return with dev_err_probe() in ade9000_reset(),
> which is called during probe. This simplifies error handling.
> 
> Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
Applied this one, but tweaked title to include dev_err_probe()
(added the brackets)

I think Andy's feedback applies to all the rest of the series so I'll wait for
v2 for those.

Thanks,

Jonathan

> ---
>  drivers/iio/adc/ade9000.c | 7 +++----
>  1 file changed, 3 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/iio/adc/ade9000.c b/drivers/iio/adc/ade9000.c
> index db085dc5e526..5dcc26a08970 100644
> --- a/drivers/iio/adc/ade9000.c
> +++ b/drivers/iio/adc/ade9000.c
> @@ -1589,10 +1589,9 @@ static int ade9000_reset(struct ade9000_state *st)
>  	/* Only wait for completion if IRQ1 is available to signal reset done */
>  	if (fwnode_irq_get_byname(dev_fwnode(dev), "irq1") >= 0) {
>  		if (!wait_for_completion_timeout(&st->reset_completion,
> -						 msecs_to_jiffies(1000))) {
> -			dev_err(dev, "Reset timeout after 1s\n");
> -			return -ETIMEDOUT;
> -		}
> +						 msecs_to_jiffies(1000)))
> +			return dev_err_probe(dev, -ETIMEDOUT,
> +					     "Reset timeout after 1s\n");
>  	}
>  	/* If no IRQ available, reset is already complete after the 50ms delay above */
>  


  reply	other threads:[~2026-02-22 17:01 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-20 13:11 [PATCH 0/7] iio: use dev_err_probe in probe path for ADI drivers Antoniu Miclaus
2026-02-20 13:11 ` [PATCH 1/7] iio: frequency: adrf6780: use dev_err_probe in probe path Antoniu Miclaus
2026-02-20 13:56   ` Andy Shevchenko
2026-02-20 13:58     ` Andy Shevchenko
2026-02-20 14:41       ` Miclaus, Antoniu
2026-02-20 14:51         ` Andy Shevchenko
2026-02-22 16:58     ` Jonathan Cameron
2026-02-20 13:11 ` [PATCH 2/7] iio: frequency: admv1014: " Antoniu Miclaus
2026-02-20 13:11 ` [PATCH 3/7] iio: frequency: admv1013: " Antoniu Miclaus
2026-02-20 13:11 ` [PATCH 4/7] iio: frequency: adf4377: " Antoniu Miclaus
2026-02-20 13:11 ` [PATCH 5/7] iio: adc: ade9000: " Antoniu Miclaus
2026-02-22 17:01   ` Jonathan Cameron [this message]
2026-02-20 13:11 ` [PATCH 6/7] iio: dac: ad7293: " Antoniu Miclaus
2026-02-20 13:11 ` [PATCH 7/7] iio: filter: admv8818: " Antoniu Miclaus

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=20260222170132.57f3e160@jic23-huawei \
    --to=jic23@kernel.org \
    --cc=Michael.Hennerich@analog.com \
    --cc=andy@kernel.org \
    --cc=antoniu.miclaus@analog.com \
    --cc=dlechner@baylibre.com \
    --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

all inboxes | Powered by JetHome®