From: Jonathan Cameron <jic23@kernel.org>
To: Andy Shevchenko <andriy.shevchenko@intel.com>
Cc: Stepan Ionichev <sozdayvek@gmail.com>,
dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org,
hcazarim@yahoo.com, joshua.crofts1@gmail.com,
gregkh@linuxfoundation.org, linux-iio@vger.kernel.org,
linux-kernel@vger.kernel.org, stable@vger.kernel.org
Subject: Re: [PATCH v2] iio: light: tsl2591: return actual error from probe IRQ failure
Date: Fri, 3 Jul 2026 20:10:11 +0100 [thread overview]
Message-ID: <20260703201011.31bfbd84@jic23-huawei> (raw)
In-Reply-To: <aiEoilRNQuHR_dqb@ashevche-desk.local>
On Thu, 4 Jun 2026 10:26:02 +0300
Andy Shevchenko <andriy.shevchenko@intel.com> wrote:
> On Thu, Jun 04, 2026 at 10:25:09AM +0300, Andy Shevchenko wrote:
> > On Wed, Jun 03, 2026 at 06:23:45PM +0100, Jonathan Cameron wrote:
> > > On Mon, 18 May 2026 16:43:09 +0100
> > > Jonathan Cameron <jic23@kernel.org> wrote:
> > > > On Mon, 18 May 2026 16:40:48 +0100
> > > > Jonathan Cameron <jic23@kernel.org> wrote:
>
> ...
>
> > > > https://sashiko.dev/#/patchset/20260518094311.2000-1-sozdayvek%40gmail.com
> > > >
> > > > Does completely removing dev_err_probe() here drop the deferred probe reason
> > > > tracking?
> > > > While this patch successfully fixes the return code, dev_err_probe() also
> > > > records the deferral reason in debugfs via device_set_deferred_probe_reason()
> > > > when ret is -EPROBE_DEFER.
> > > > Could we keep the diagnostic tracking by returning the result of
> > > > dev_err_probe() directly instead?
> > > > if (ret)
> > > > return dev_err_probe(&client->dev, ret, "IRQ request error\n");
> > > >
> > > > Andy, what do you think?
> > > Andy?
> > >
> > > This is a change you might have asked for, but sashiko is correctly noting
> > > that we might loose a deferred reason even if the print is otherwise useless.
> >
> > Incorrectly. IRQ core prints an error via dev_err_probe(). Did I miss something?
>
> I'm referring to implementation of devm_request_result() in kernel/irq/devres.c.
>
Oops. I almost lost this one. Patchwork had my back though.
Applied.
Jonathan
prev parent reply other threads:[~2026-07-03 19:10 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-17 18:10 [PATCH] iio: light: tsl2591: return actual error from probe IRQ failure Stepan Ionichev
2026-05-17 18:25 ` Joshua Crofts
2026-05-18 7:37 ` Andy Shevchenko
2026-05-18 9:43 ` [PATCH v2] " Stepan Ionichev
2026-05-18 15:40 ` Jonathan Cameron
2026-05-18 15:43 ` Jonathan Cameron
2026-06-03 17:23 ` Jonathan Cameron
2026-06-04 7:25 ` Andy Shevchenko
2026-06-04 7:26 ` Andy Shevchenko
2026-07-03 19:10 ` 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=20260703201011.31bfbd84@jic23-huawei \
--to=jic23@kernel.org \
--cc=andriy.shevchenko@intel.com \
--cc=andy@kernel.org \
--cc=dlechner@baylibre.com \
--cc=gregkh@linuxfoundation.org \
--cc=hcazarim@yahoo.com \
--cc=joshua.crofts1@gmail.com \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nuno.sa@analog.com \
--cc=sozdayvek@gmail.com \
--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