From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Guenter Roeck <linux@roeck-us.net>
Cc: "Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Uwe Kleine-König" <uwe@kleine-koenig.org>,
linux-kernel@vger.kernel.org,
"Rafael J. Wysocki" <rafael@kernel.org>,
"Matthias Schiffer" <matthias.schiffer@ew.tq-group.com>
Subject: Re: [PATCH v1 1/1] driver core: platform: Make platform_get_irq_optional() optional
Date: Wed, 7 Apr 2021 12:38:35 +0300 [thread overview]
Message-ID: <YG19mxfyHIdZKW/Z@smile.fi.intel.com> (raw)
In-Reply-To: <20210406192514.GA34677@roeck-us.net>
On Tue, Apr 06, 2021 at 12:25:14PM -0700, Guenter Roeck wrote:
> On Wed, Mar 31, 2021 at 05:45:26PM +0300, Andy Shevchenko wrote:
> > Currently the platform_get_irq_optional() returns an error code even
> > if IRQ resource sumply has not been found. It prevents caller to be
> > error code agnostic in their error handling.
> >
> > Now:
> > ret = platform_get_irq_optional(...);
> > if (ret != -ENXIO)
> > return ret; // respect deferred probe
> > if (ret > 0)
> > ...we get an IRQ...
> >
> > After proposed change:
> > ret = platform_get_irq_optional(...);
> > if (ret < 0)
> > return ret;
> > if (ret > 0)
> > ...we get an IRQ...
> >
> > Reported-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
> > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
>
> This patch causes all my "sh" emulations to stall during boot with the
> following repeated error message.
>
> sh-sci sh-sci.1: Can't allocate rx full IRQ
>
> Reverting this patch fixes the problem (and the message is gone).
> Bisect log is attached.
I believe it reveals some "interesting" error handling there.
I'm going to propose a solution soon.
Thanks for the report!
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2021-04-07 9:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-31 14:45 [PATCH v1 1/1] driver core: platform: Make platform_get_irq_optional() optional Andy Shevchenko
2021-04-06 19:25 ` Guenter Roeck
2021-04-07 9:38 ` Andy Shevchenko [this message]
2021-04-07 9:49 ` Greg Kroah-Hartman
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=YG19mxfyHIdZKW/Z@smile.fi.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=matthias.schiffer@ew.tq-group.com \
--cc=rafael@kernel.org \
--cc=uwe@kleine-koenig.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