From: Tony Lindgren <tony@atomide.com>
To: Valentin Rothberg <Valentin.Rothberg@lip6.fr>
Cc: ssantosh@kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] omap_l3_smx.c: remove IRQF_DISABLED flag
Date: Mon, 2 Mar 2015 08:05:59 -0800 [thread overview]
Message-ID: <20150302160559.GA3756@atomide.com> (raw)
In-Reply-To: <1425303353-32283-1-git-send-email-Valentin.Rothberg@lip6.fr>
* Valentin Rothberg <Valentin.Rothberg@lip6.fr> [150302 05:39]:
> The IRQF_DISABLED flag is a NOOP and scheduled to be removed. According
> to commit e58aa3d2d0cc ("genirq: Run irq handlers with interrupts
> disabled") running IRQ handlers with interrupts enabled can cause stack
> overflows when the interrupt line of the issuing device is still active.
>
> Signed-off-by: Valentin Rothberg <Valentin.Rothberg@lip6.fr>
Applying into omap-for-v4.1/l3 thanks.
Regards,
Tony
> ---
> drivers/bus/omap_l3_smx.c | 10 ++++------
> 1 file changed, 4 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/bus/omap_l3_smx.c b/drivers/bus/omap_l3_smx.c
> index 597fdae..360a5c0 100644
> --- a/drivers/bus/omap_l3_smx.c
> +++ b/drivers/bus/omap_l3_smx.c
> @@ -251,18 +251,16 @@ static int omap3_l3_probe(struct platform_device *pdev)
> }
>
> l3->debug_irq = platform_get_irq(pdev, 0);
> - ret = request_irq(l3->debug_irq, omap3_l3_app_irq,
> - IRQF_DISABLED | IRQF_TRIGGER_RISING,
> - "l3-debug-irq", l3);
> + ret = request_irq(l3->debug_irq, omap3_l3_app_irq, IRQF_TRIGGER_RISING,
> + "l3-debug-irq", l3);
> if (ret) {
> dev_err(&pdev->dev, "couldn't request debug irq\n");
> goto err1;
> }
>
> l3->app_irq = platform_get_irq(pdev, 1);
> - ret = request_irq(l3->app_irq, omap3_l3_app_irq,
> - IRQF_DISABLED | IRQF_TRIGGER_RISING,
> - "l3-app-irq", l3);
> + ret = request_irq(l3->app_irq, omap3_l3_app_irq, IRQF_TRIGGER_RISING,
> + "l3-app-irq", l3);
> if (ret) {
> dev_err(&pdev->dev, "couldn't request app irq\n");
> goto err2;
> --
> 1.9.1
>
next prev parent reply other threads:[~2015-03-02 16:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-02 13:35 [PATCH] omap_l3_smx.c: remove IRQF_DISABLED flag Valentin Rothberg
2015-03-02 16:05 ` Tony Lindgren [this message]
2015-03-02 17:29 ` santosh shilimkar
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=20150302160559.GA3756@atomide.com \
--to=tony@atomide.com \
--cc=Valentin.Rothberg@lip6.fr \
--cc=linux-kernel@vger.kernel.org \
--cc=ssantosh@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.