omap_l3_noc.c: remove IRQF_DISABLED flag
PATCH 1/1 omap_l3_noc.c: remove IRQF_DISABLED flag
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 <[email protected]>
--- drivers/bus/omap_l3_noc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/bus/omap_l3_noc.c +2 -2
@@ -284,7 +284,7 @@ static int omap_l3_probe(struct platform_device *pdev)*/ l3->debug_irq =platform_get_irq (pdev,0 ); ret =devm_request_irq (l3->dev, l3->debug_irq, l3_interrupt_handler, -IRQF_DISABLED ,"l3-dbg-irq" , l3); +0x0 ,"l3-dbg-irq" , l3);if (ret) {dev_err (l3->dev,"request_irq failed for %d\n" , l3->debug_irq);
@@ -293,7 +293,7 @@ static int omap_l3_probe(struct platform_device *pdev) l3->app_irq =platform_get_irq (pdev,1 ); ret =devm_request_irq (l3->dev, l3->app_irq, l3_interrupt_handler, -IRQF_DISABLED ,"l3-app-irq" , l3); +0x0 ,"l3-app-irq" , l3);if (ret)dev_err (l3->dev,"request_irq failed for %d\n" , l3->app_irq);
Signature · 1 line
1.9.1
Tony Lindgren
maintainerQuoted 6 lines · Valentin Rothberg
The
IRQF_DISABLEDflag is a NOOP and scheduled to be removed. According to commite58aa3d2d0cc("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 <[email protected]>
Applying into omap-for-v4.1/l3 thanks.
Tony
Quoted 28 lines
drivers/bus/omap_l3_noc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/bus/omap_l3_noc.c +2
-2@@ -284,7 +284,7 @@ static int omap_l3_probe(struct platform_device *pdev)*/ l3->debug_irq =platform_get_irq (pdev,0 ); ret =devm_request_irq (l3->dev, l3->debug_irq, l3_interrupt_handler, -IRQF_DISABLED ,"l3-dbg-irq" , l3); +0x0 ,"l3-dbg-irq" , l3);if (ret) {dev_err (l3->dev,"request_irq failed for %d\n" , l3->debug_irq);@@ -293,7 +293,7 @@ static int omap_l3_probe(struct platform_device *pdev) l3->app_irq =platform_get_irq (pdev,1 ); ret =devm_request_irq (l3->dev, l3->app_irq, l3_interrupt_handler, -IRQF_DISABLED ,"l3-app-irq" , l3); +0x0 ,"l3-app-irq" , l3);if (ret)dev_err (l3->dev,"request_irq failed for %d\n" , l3->app_irq);Signature · 1 line
1.9.1