omap_l3_smx.c: remove IRQF_DISABLED flag
PATCH 1/1 omap_l3_smx.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.
--- drivers/bus/omap_l3_smx.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-)
drivers/bus/omap_l3_smx.c +4 -6
@@ -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;
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.
Regards,
Tony
Quoted 34 lines
--- drivers/bus/omap_l3_smx.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-)drivers/bus/omap_l3_smx.c +4
-6@@ -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;Signature · 1 line
1.9.1
Quoted 7 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]>---