From: Tony Lindgren <tony@atomide.com>
To: Grygorii Strashko <grygorii.strashko@ti.com>
Cc: Linus Walleij <linus.walleij@linaro.org>,
linux-omap@vger.kernel.org, linux-gpio@vger.kernel.org,
linux-kernel@vger.kernel.org,
Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Subject: Re: [PATCH] pinctrl: single: ensure pcs irq will not be forced threaded
Date: Mon, 6 Jul 2015 08:29:21 -0700 [thread overview]
Message-ID: <20150706152921.GM10705@atomide.com> (raw)
In-Reply-To: <1436195617-24003-1-git-send-email-grygorii.strashko@ti.com>
* Grygorii Strashko <grygorii.strashko@ti.com> [150706 08:16]:
> The PSC IRQ is requested using request_irq() API and as result it can
> be forced to be threaded IRQ in RT-Kernel if PCS_QUIRK_HAS_SHARED_IRQ
> is enabled for pinctrl domain.
>
> As result, following 'possible irq lock inversion dependency' report
> can be seen:
...
> To fix it use IRQF_NO_THREAD to ensure that pcs irq will not be forced threaded.
>
> Cc: Tony Lindgren <tony@atomide.com>
> Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
> Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
> ---
> drivers/pinctrl/pinctrl-single.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/pinctrl/pinctrl-single.c b/drivers/pinctrl/pinctrl-single.c
> index b2de09d..0b8d480 100644
> --- a/drivers/pinctrl/pinctrl-single.c
> +++ b/drivers/pinctrl/pinctrl-single.c
> @@ -1760,7 +1760,8 @@ static int pcs_irq_init_chained_handler(struct pcs_device *pcs,
> int res;
>
> res = request_irq(pcs_soc->irq, pcs_irq_handler,
> - IRQF_SHARED | IRQF_NO_SUSPEND,
> + IRQF_SHARED | IRQF_NO_SUSPEND |
> + IRQF_NO_THREAD,
> name, pcs_soc);
> if (res) {
> pcs_soc->irq = -1;
Looks OK to me. The only case this would be a problem if a system has
a huge number of wake-up events as the list of status registers to
check could grow to the number of GPIO pins in theory. Anyways,
feel free to add:
Acked-by: Tony Lindgren <tony@atomide.com>
next prev parent reply other threads:[~2015-07-06 15:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-06 15:13 Grygorii Strashko
2015-07-06 15:29 ` Tony Lindgren [this message]
2015-07-16 12:29 ` Linus Walleij
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=20150706152921.GM10705@atomide.com \
--to=tony@atomide.com \
--cc=bigeasy@linutronix.de \
--cc=grygorii.strashko@ti.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@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
Powered by JetHome