patch "iio: twl4030-madc: Pass the IRQF_ONESHOT flag" added to staging-linus
Subsystems (2)
This is a note to let you know that I've just added the patch titled
iio: twl4030-madc: Pass the IRQF_ONESHOT flag
to my staging git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
in the staging-linus branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.
If you have any questions about this process, please let me know.
Quoted 1 line
From
6c0d48cb29c29b306ba3548afb45154d22eb4d78Mon Sep 17 00:00:00 2001
From: Fabio Estevam <[email protected]>
Date: Sun, 24 May 2015 17:39:04 -0300
Subject: iio: twl4030-madc: Pass the IRQF_ONESHOT flag
Since commit 1c6c69525b40 ("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/iio/adc/twl4030-madc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/iio/adc/twl4030-madc.c +2 -1
@@ -835,7 +835,8 @@ static int twl4030_madc_probe(struct platform_device *pdev) irq =platform_get_irq (pdev,0 ); ret =devm_request_threaded_irq (&pdev->dev, irq,NULL , twl4030_madc_threaded_irq_handler, -IRQF_TRIGGER_RISING ,"twl4030_madc" , madc); +IRQF_TRIGGER_RISING |IRQF_ONESHOT , +"twl4030_madc" , madc);if (ret) {dev_err (&pdev->dev,"could not request irq\n" ); goto err_i2c;
Signature · 1 line
2.4.5