mfd: twl4030-irq: Pass the IRQF_ONESHOT flag
Subsystems (4)
PATCH 1/8 mfd: twl4030-irq: Pass the IRQF_ONESHOT flag
From: Fabio Estevam <[email protected]>
Since commit 1c6c69525b40eb76de8adf039409722015927dc3 ("genirq: Reject bogus threaded irq requests") threaded IRQs without a primary handler need to be requested with IRQF_ONESHOT, otherwise the request will fail.
So pass the IRQF_ONESHOT flag in this case.
The semantic patch that makes this change is available in scripts/coccinelle/misc/irqf_oneshot.cocci.
--- drivers/mfd/twl4030-irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mfd/twl4030-irq.c +1 -1
@@ -674,7 +674,7 @@ int twl4030_sih_setup(struct device *dev, int module, int irq_base)irq_set_handler_data (irq, agent); agent->irq_name =kasprintf (GFP_KERNEL ,"twl4030_%s" , sih->name); status =request_threaded_irq (irq,NULL , handle_twl4030_sih, -IRQF_EARLY_RESUME , +IRQF_EARLY_RESUME |IRQF_ONESHOT , agent->irq_name ?: sih->name,NULL ); dev_info(dev, "%s (irq %d) chaining IRQs %d..%d\n", sih->name,
Signature · 1 line
1.9.1
PATCH 2/8 mfd: mc13xxx-core: Pass the IRQF_ONESHOT flag
From: Fabio Estevam <[email protected]>
Since commit 1c6c69525b40eb76de8adf039409722015927dc3 ("genirq: Reject bogus threaded irq requests") threaded IRQs without a primary handler need to be requested with IRQF_ONESHOT, otherwise the request will fail.
So pass the IRQF_ONESHOT flag in this case.
The semantic patch that makes this change is available in scripts/coccinelle/misc/irqf_oneshot.cocci.
--- drivers/mfd/mc13xxx-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mfd/mc13xxx-core.c +1 -1
@@ -163,7 +163,7 @@ int mc13xxx_irq_request(struct mc13xxx *mc13xxx, int irq,int virq =regmap_irq_get_virq (mc13xxx->irq_data, irq);return devm_request_threaded_irq (mc13xxx->dev, virq,NULL , handler, -0 , name, dev); +IRQF_ONESHOT , name, dev); }EXPORT_SYMBOL (mc13xxx_irq_request);
Signature · 1 line
1.9.1
Lee Jones
AppliedRe: [PATCH 2/8] mfd: mc13xxx-core: Pass the IRQF_ONESHOT flag
Quoted 8 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
Since commit
1c6c69525b40eb76de8adf039409722015927dc3("genirq: Reject bogus threaded irq requests") threaded IRQs without a primary handler need to be requested withIRQF_ONESHOT, otherwise the request will fail.So pass the
IRQF_ONESHOTflag in this case.
Quoted 7 lines
The semantic patch that makes this change is available in
scripts/coccinelle/misc/irqf_oneshot.cocci.Signed-off-by Fabio Estevam <[email protected]>--- drivers/mfd/mc13xxx-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
Quoted 13 lines
drivers/mfd/mc13xxx-core.c +1
-1@@ -163,7 +163,7 @@ int mc13xxx_irq_request(struct mc13xxx *mc13xxx, int irq,int virq =regmap_irq_get_virq (mc13xxx->irq_data, irq);return devm_request_threaded_irq (mc13xxx->dev, virq,NULL , handler, -0 , name, dev); +IRQF_ONESHOT , name, dev); }EXPORT_SYMBOL (mc13xxx_irq_request);
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
PATCH 3/8 mfd: wm831x-auxadc: Pass the IRQF_ONESHOT flag
In reply to Fabio EstevamFrom: Fabio Estevam <[email protected]>
Since commit 1c6c69525b40eb76de8adf039409722015927dc3 ("genirq: Reject bogus threaded irq requests") threaded IRQs without a primary handler need to be requested with IRQF_ONESHOT, otherwise the request will fail.
So pass the IRQF_ONESHOT flag in this case.
The semantic patch that makes this change is available in scripts/coccinelle/misc/irqf_oneshot.cocci.
--- drivers/mfd/wm831x-auxadc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/mfd/wm831x-auxadc.c +2 -1
@@ -285,7 +285,8 @@ void wm831x_auxadc_init(struct wm831x *wm831x) ret =request_threaded_irq (wm831x_irq (wm831x,WM831X_IRQ_AUXADC_DATA ), -NULL , wm831x_auxadc_irq,0 , +NULL , wm831x_auxadc_irq, +IRQF_ONESHOT ,"auxadc" , wm831x);if (ret <0 ) { dev_err(wm831x->dev, "AUXADC IRQ request failed: %d\n",
Signature · 1 line
1.9.1
Lee Jones
AppliedRe: [PATCH 3/8] mfd: wm831x-auxadc: Pass the IRQF_ONESHOT flag
Quoted 8 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
Since commit
1c6c69525b40eb76de8adf039409722015927dc3("genirq: Reject bogus threaded irq requests") threaded IRQs without a primary handler need to be requested withIRQF_ONESHOT, otherwise the request will fail.So pass the
IRQF_ONESHOTflag in this case.
Quoted 7 lines
The semantic patch that makes this change is available in
scripts/coccinelle/misc/irqf_oneshot.cocci.Signed-off-by Fabio Estevam <[email protected]>--- drivers/mfd/wm831x-auxadc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Applied, thanks.
Quoted 14 lines
drivers/mfd/wm831x-auxadc.c +2
-1@@ -285,7 +285,8 @@ void wm831x_auxadc_init(struct wm831x *wm831x) ret =request_threaded_irq (wm831x_irq (wm831x,WM831X_IRQ_AUXADC_DATA ), -NULL , wm831x_auxadc_irq,0 , +NULL , wm831x_auxadc_irq, +IRQF_ONESHOT ,"auxadc" , wm831x);if (ret <0 ) { dev_err(wm831x->dev, "AUXADC IRQ request failed: %d\n",
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
PATCH 4/8 mfd: htc-i2cpld: Pass the IRQF_ONESHOT flag
In reply to Fabio EstevamFrom: Fabio Estevam <[email protected]>
Since commit 1c6c69525b40eb76de8adf039409722015927dc3 ("genirq: Reject bogus threaded irq requests") threaded IRQs without a primary handler need to be requested with IRQF_ONESHOT, otherwise the request will fail.
So pass the IRQF_ONESHOT flag in this case.
The semantic patch that makes this change is available in scripts/coccinelle/misc/irqf_oneshot.cocci.
--- drivers/mfd/htc-i2cpld.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/mfd/htc-i2cpld.c +2 -1
@@ -564,7 +564,8 @@ static int htcpld_core_probe(struct platform_device *pdev) htcpld->chained_irq = res->start;/* Setup the chained interrupt handler */ - flags =IRQF_TRIGGER_FALLING |IRQF_TRIGGER_RISING ; + flags =IRQF_TRIGGER_FALLING |IRQF_TRIGGER_RISING | +IRQF_ONESHOT ; ret =request_threaded_irq (htcpld->chained_irq,NULL , htcpld_handler, flags, pdev->name, htcpld);
Signature · 1 line
1.9.1
Lee Jones
AppliedRe: [PATCH 4/8] mfd: htc-i2cpld: Pass the IRQF_ONESHOT flag
Quoted 8 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
Since commit
1c6c69525b40eb76de8adf039409722015927dc3("genirq: Reject bogus threaded irq requests") threaded IRQs without a primary handler need to be requested withIRQF_ONESHOT, otherwise the request will fail.So pass the
IRQF_ONESHOTflag in this case.
Quoted 7 lines
The semantic patch that makes this change is available in
scripts/coccinelle/misc/irqf_oneshot.cocci.Signed-off-by Fabio Estevam <[email protected]>--- drivers/mfd/htc-i2cpld.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Applied, thanks.
Quoted 14 lines
drivers/mfd/htc-i2cpld.c +2
-1@@ -564,7 +564,8 @@ static int htcpld_core_probe(struct platform_device *pdev) htcpld->chained_irq = res->start;/* Setup the chained interrupt handler */ - flags =IRQF_TRIGGER_FALLING |IRQF_TRIGGER_RISING ; + flags =IRQF_TRIGGER_FALLING |IRQF_TRIGGER_RISING | +IRQF_ONESHOT ; ret =request_threaded_irq (htcpld->chained_irq,NULL , htcpld_handler, flags, pdev->name, htcpld);
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
PATCH 5/8 mfd: wm8350-core: Pass the IRQF_ONESHOT flag
In reply to Fabio EstevamFrom: Fabio Estevam <[email protected]>
Since commit 1c6c69525b40eb76de8adf039409722015927dc3 ("genirq: Reject bogus threaded irq requests") threaded IRQs without a primary handler need to be requested with IRQF_ONESHOT, otherwise the request will fail.
So pass the IRQF_ONESHOT flag in this case.
The semantic patch that makes this change is available in scripts/coccinelle/misc/irqf_oneshot.cocci.
--- drivers/mfd/wm8350-core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/mfd/wm8350-core.c +2 -1
@@ -404,7 +404,8 @@ int wm8350_device_init(struct wm8350 *wm8350, int irq,if (wm8350->irq_base) { ret =request_threaded_irq (wm8350->irq_base +WM8350_IRQ_AUXADC_DATARDY , -NULL , wm8350_auxadc_irq,0 , +NULL , wm8350_auxadc_irq, +IRQF_ONESHOT ,"auxadc" , wm8350);if (ret <0 ) dev_warn(wm8350->dev,
Signature · 1 line
1.9.1
Lee Jones
AppliedRe: [PATCH 5/8] mfd: wm8350-core: Pass the IRQF_ONESHOT flag
Quoted 8 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
Since commit
1c6c69525b40eb76de8adf039409722015927dc3("genirq: Reject bogus threaded irq requests") threaded IRQs without a primary handler need to be requested withIRQF_ONESHOT, otherwise the request will fail.So pass the
IRQF_ONESHOTflag in this case.
Quoted 7 lines
The semantic patch that makes this change is available in
scripts/coccinelle/misc/irqf_oneshot.cocci.Signed-off-by Fabio Estevam <[email protected]>--- drivers/mfd/wm8350-core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Applied, thanks.
Quoted 14 lines
drivers/mfd/wm8350-core.c +2
-1@@ -404,7 +404,8 @@ int wm8350_device_init(struct wm8350 *wm8350, int irq,if (wm8350->irq_base) { ret =request_threaded_irq (wm8350->irq_base +WM8350_IRQ_AUXADC_DATARDY , -NULL , wm8350_auxadc_irq,0 , +NULL , wm8350_auxadc_irq, +IRQF_ONESHOT ,"auxadc" , wm8350);if (ret <0 ) dev_warn(wm8350->dev,
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
PATCH 6/8 mfd: ab8500-debugfs: Pass the IRQF_ONESHOT flag
In reply to Fabio EstevamFrom: Fabio Estevam <[email protected]>
Since commit 1c6c69525b40eb76de8adf039409722015927dc3 ("genirq: Reject bogus threaded irq requests") threaded IRQs without a primary handler need to be requested with IRQF_ONESHOT, otherwise the request will fail.
So pass the IRQF_ONESHOT flag in this case.
The semantic patch that makes this change is available in scripts/coccinelle/misc/irqf_oneshot.cocci.
--- drivers/mfd/ab8500-debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mfd/ab8500-debugfs.c +1 -1
@@ -2885,7 +2885,7 @@ static ssize_t ab8500_subscribe_write(struct file *file, } err =request_threaded_irq (user_val,NULL , ab8500_debug_handler, -IRQF_SHARED |IRQF_NO_SUSPEND , +IRQF_SHARED |IRQF_NO_SUSPEND |IRQF_ONESHOT ,"ab8500-debug" , &dev->kobj);if (err <0 ) { pr_info("request_threaded_irq failed %d, %lu\n",
Signature · 1 line
1.9.1
Lee Jones
AppliedRe: [PATCH 6/8] mfd: ab8500-debugfs: Pass the IRQF_ONESHOT flag
Quoted 8 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
Since commit
1c6c69525b40eb76de8adf039409722015927dc3("genirq: Reject bogus threaded irq requests") threaded IRQs without a primary handler need to be requested withIRQF_ONESHOT, otherwise the request will fail.So pass the
IRQF_ONESHOTflag in this case.
Quoted 7 lines
The semantic patch that makes this change is available in
scripts/coccinelle/misc/irqf_oneshot.cocci.Signed-off-by Fabio Estevam <[email protected]>--- drivers/mfd/ab8500-debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
Quoted 13 lines
drivers/mfd/ab8500-debugfs.c +1
-1@@ -2885,7 +2885,7 @@ static ssize_t ab8500_subscribe_write(struct file *file, } err =request_threaded_irq (user_val,NULL , ab8500_debug_handler, -IRQF_SHARED |IRQF_NO_SUSPEND , +IRQF_SHARED |IRQF_NO_SUSPEND |IRQF_ONESHOT ,"ab8500-debug" , &dev->kobj);if (err <0 ) { pr_info("request_threaded_irq failed %d, %lu\n",
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
PATCH 7/8 mfd: ab8500-gpadc: Pass the IRQF_ONESHOT flag
In reply to Fabio EstevamFrom: Fabio Estevam <[email protected]>
Since commit 1c6c69525b40eb76de8adf039409722015927dc3 ("genirq: Reject bogus threaded irq requests") threaded IRQs without a primary handler need to be requested with IRQF_ONESHOT, otherwise the request will fail.
So pass the IRQF_ONESHOT flag in this case.
The semantic patch that makes this change is available in scripts/coccinelle/misc/irqf_oneshot.cocci.
--- drivers/mfd/ab8500-gpadc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/mfd/ab8500-gpadc.c +4 -2
@@ -948,7 +948,8 @@ static int ab8500_gpadc_probe(struct platform_device *pdev)if (gpadc->irq_sw >=0 ) { ret =request_threaded_irq (gpadc->irq_sw,NULL , ab8500_bm_gpadcconvend_handler, -IRQF_NO_SUSPEND |IRQF_SHARED ,"ab8500-gpadc-sw" , +IRQF_NO_SUSPEND |IRQF_SHARED |IRQF_ONESHOT , +"ab8500-gpadc-sw" , gpadc);if (ret <0 ) { dev_err(gpadc->dev,
@@ -961,7 +962,8 @@ static int ab8500_gpadc_probe(struct platform_device *pdev)if (gpadc->irq_hw >=0 ) { ret =request_threaded_irq (gpadc->irq_hw,NULL , ab8500_bm_gpadcconvend_handler, -IRQF_NO_SUSPEND |IRQF_SHARED ,"ab8500-gpadc-hw" , +IRQF_NO_SUSPEND |IRQF_SHARED |IRQF_ONESHOT , +"ab8500-gpadc-hw" , gpadc);if (ret <0 ) { dev_err(gpadc->dev,
Signature · 1 line
1.9.1
Lee Jones
AppliedRe: [PATCH 7/8] mfd: ab8500-gpadc: Pass the IRQF_ONESHOT flag
Quoted 8 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
Since commit
1c6c69525b40eb76de8adf039409722015927dc3("genirq: Reject bogus threaded irq requests") threaded IRQs without a primary handler need to be requested withIRQF_ONESHOT, otherwise the request will fail.So pass the
IRQF_ONESHOTflag in this case.
Quoted 7 lines
The semantic patch that makes this change is available in
scripts/coccinelle/misc/irqf_oneshot.cocci.Signed-off-by Fabio Estevam <[email protected]>--- drivers/mfd/ab8500-gpadc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
Applied, thanks.
Quoted 24 lines
drivers/mfd/ab8500-gpadc.c +4
-2@@ -948,7 +948,8 @@ static int ab8500_gpadc_probe(struct platform_device *pdev)if (gpadc->irq_sw >=0 ) { ret =request_threaded_irq (gpadc->irq_sw,NULL , ab8500_bm_gpadcconvend_handler, -IRQF_NO_SUSPEND |IRQF_SHARED ,"ab8500-gpadc-sw" , +IRQF_NO_SUSPEND |IRQF_SHARED |IRQF_ONESHOT , +"ab8500-gpadc-sw" , gpadc);if (ret <0 ) { dev_err(gpadc->dev,@@ -961,7 +962,8 @@ static int ab8500_gpadc_probe(struct platform_device *pdev)if (gpadc->irq_hw >=0 ) { ret =request_threaded_irq (gpadc->irq_hw,NULL , ab8500_bm_gpadcconvend_handler, -IRQF_NO_SUSPEND |IRQF_SHARED ,"ab8500-gpadc-hw" , +IRQF_NO_SUSPEND |IRQF_SHARED |IRQF_ONESHOT , +"ab8500-gpadc-hw" , gpadc);if (ret <0 ) { dev_err(gpadc->dev,
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
PATCH 8/8 mfd: si476x-i2c: Pass the IRQF_ONESHOT flag
In reply to Fabio EstevamFrom: Fabio Estevam <[email protected]>
Since commit 1c6c69525b40eb76de8adf039409722015927dc3 ("genirq: Reject bogus threaded irq requests") threaded IRQs without a primary handler need to be requested with IRQF_ONESHOT, otherwise the request will fail.
So pass the IRQF_ONESHOT flag in this case.
The semantic patch that makes this change is available in scripts/coccinelle/misc/irqf_oneshot.cocci.
--- drivers/mfd/si476x-i2c.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/mfd/si476x-i2c.c +2 -1
@@ -777,7 +777,8 @@ static int si476x_core_probe(struct i2c_client *client, rval =devm_request_threaded_irq (&client->dev, client->irq,NULL , si476x_core_interrupt, -IRQF_TRIGGER_FALLING , +IRQF_TRIGGER_FALLING | +IRQF_ONESHOT , client->name, core);if (rval <0 ) { dev_err(&client->dev, "Could not request IRQ %d\n",
Signature · 1 line
1.9.1
Lee Jones
AppliedRe: [PATCH 8/8] mfd: si476x-i2c: Pass the IRQF_ONESHOT flag
Quoted 8 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
Since commit
1c6c69525b40eb76de8adf039409722015927dc3("genirq: Reject bogus threaded irq requests") threaded IRQs without a primary handler need to be requested withIRQF_ONESHOT, otherwise the request will fail.So pass the
IRQF_ONESHOTflag in this case.
Quoted 7 lines
The semantic patch that makes this change is available in
scripts/coccinelle/misc/irqf_oneshot.cocci.Signed-off-by Fabio Estevam <[email protected]>--- drivers/mfd/si476x-i2c.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Applied, thanks.
Quoted 14 lines
drivers/mfd/si476x-i2c.c +2
-1@@ -777,7 +777,8 @@ static int si476x_core_probe(struct i2c_client *client, rval =devm_request_threaded_irq (&client->dev, client->irq,NULL , si476x_core_interrupt, -IRQF_TRIGGER_FALLING , +IRQF_TRIGGER_FALLING | +IRQF_ONESHOT , client->name, core);if (rval <0 ) { dev_err(&client->dev, "Could not request IRQ %d\n",
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Hi Lee,
Quoted 6 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
Since commit
1c6c69525b40eb76de8adf039409722015927dc3("genirq: Reject bogus threaded irq requests") threaded IRQs without a primary handler need to be requested withIRQF_ONESHOT, otherwise the request will fail.
Quoted 6 lines
So pass the
IRQF_ONESHOTflag in this case.The semantic patch that makes this change is available in
scripts/coccinelle/misc/irqf_oneshot.cocci.Signed-off-by Fabio Estevam <[email protected]>
Are you happy with this series? Would you like me to resend it?
Lee Jones
AppliedQuoted 8 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
Since commit
1c6c69525b40eb76de8adf039409722015927dc3("genirq: Reject bogus threaded irq requests") threaded IRQs without a primary handler need to be requested withIRQF_ONESHOT, otherwise the request will fail.So pass the
IRQF_ONESHOTflag in this case.
Quoted 7 lines
The semantic patch that makes this change is available in
scripts/coccinelle/misc/irqf_oneshot.cocci.Signed-off-by Fabio Estevam <[email protected]>--- drivers/mfd/twl4030-irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
Quoted 13 lines
drivers/mfd/twl4030-irq.c +1
-1@@ -674,7 +674,7 @@ int twl4030_sih_setup(struct device *dev, int module, int irq_base)irq_set_handler_data (irq, agent); agent->irq_name =kasprintf (GFP_KERNEL ,"twl4030_%s" , sih->name); status =request_threaded_irq (irq,NULL , handle_twl4030_sih, -IRQF_EARLY_RESUME , +IRQF_EARLY_RESUME |IRQF_ONESHOT , agent->irq_name ?: sih->name,NULL ); dev_info(dev, "%s (irq %d) chaining IRQs %d..%d\n", sih->name,
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog