rtc: isl1208: Pass the IRQF_ONESHOT flag
PATCH 1/1 rtc: isl1208: 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/rtc/rtc-isl1208.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/rtc/rtc-isl1208.c +1 -1
@@ -638,7 +638,7 @@ isl1208_probe(struct i2c_client *client, const struct i2c_device_id *id)if (client->irq >0 ) { rc =devm_request_threaded_irq (&client->dev, client->irq,NULL , isl1208_rtc_interrupt, -IRQF_SHARED , +IRQF_SHARED |IRQF_ONESHOT , isl1208_driver.driver.name, client);if (!rc) {
Signature · 12 lines
1.9.1 -- -- You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist before submitting a driver. --- You received this message because you are subscribed to the Google Groups "rtc-linux" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
Alexandre Belloni
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 8 lines
The semantic patch that makes this change is available in
scripts/coccinelle/misc/irqf_oneshot.cocciSigned-off-by Fabio Estevam <[email protected]>--- drivers/rtc/rtc-isl1208.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
Signature · 14 lines
Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- -- You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist before submitting a driver. --- You received this message because you are subscribed to the Google Groups "rtc-linux" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.