mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
staging:iio: Request threaded-only IRQs with IRQF_ONESHOT
Since commit 1c6c69525b
("genirq: Reject bogus threaded irq requests") threaded
IRQs without a primary handler need to be requested with IRQF_ONESHOT, otherwise
the request will fail. This patch adds the IRQF_ONESHOT to IIO drivers where it
is missing.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
e1dc7bee74
commit
a91aff1c09
5 changed files with 12 additions and 8 deletions
|
@ -1189,7 +1189,7 @@ static int __devinit sca3000_probe(struct spi_device *spi)
|
||||||
ret = request_threaded_irq(spi->irq,
|
ret = request_threaded_irq(spi->irq,
|
||||||
NULL,
|
NULL,
|
||||||
&sca3000_event_handler,
|
&sca3000_event_handler,
|
||||||
IRQF_TRIGGER_FALLING,
|
IRQF_TRIGGER_FALLING | IRQF_ONESHOT,
|
||||||
"sca3000",
|
"sca3000",
|
||||||
indio_dev);
|
indio_dev);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
|
|
@ -402,7 +402,7 @@ static int __devinit ad7816_probe(struct spi_device *spi_dev)
|
||||||
ret = request_threaded_irq(spi_dev->irq,
|
ret = request_threaded_irq(spi_dev->irq,
|
||||||
NULL,
|
NULL,
|
||||||
&ad7816_event_handler,
|
&ad7816_event_handler,
|
||||||
IRQF_TRIGGER_LOW,
|
IRQF_TRIGGER_LOW | IRQF_ONESHOT,
|
||||||
indio_dev->name,
|
indio_dev->name,
|
||||||
indio_dev);
|
indio_dev);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
|
|
@ -778,7 +778,7 @@ static int __devinit adt7310_probe(struct spi_device *spi_dev)
|
||||||
ret = request_threaded_irq(spi_dev->irq,
|
ret = request_threaded_irq(spi_dev->irq,
|
||||||
NULL,
|
NULL,
|
||||||
&adt7310_event_handler,
|
&adt7310_event_handler,
|
||||||
irq_flags,
|
irq_flags | IRQF_ONESHOT,
|
||||||
indio_dev->name,
|
indio_dev->name,
|
||||||
indio_dev);
|
indio_dev);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
@ -790,7 +790,8 @@ static int __devinit adt7310_probe(struct spi_device *spi_dev)
|
||||||
ret = request_threaded_irq(adt7310_platform_data[0],
|
ret = request_threaded_irq(adt7310_platform_data[0],
|
||||||
NULL,
|
NULL,
|
||||||
&adt7310_event_handler,
|
&adt7310_event_handler,
|
||||||
adt7310_platform_data[1],
|
adt7310_platform_data[1] |
|
||||||
|
IRQF_ONESHOT,
|
||||||
indio_dev->name,
|
indio_dev->name,
|
||||||
indio_dev);
|
indio_dev);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
|
|
@ -742,7 +742,7 @@ static int __devinit adt7410_probe(struct i2c_client *client,
|
||||||
ret = request_threaded_irq(client->irq,
|
ret = request_threaded_irq(client->irq,
|
||||||
NULL,
|
NULL,
|
||||||
&adt7410_event_handler,
|
&adt7410_event_handler,
|
||||||
IRQF_TRIGGER_LOW,
|
IRQF_TRIGGER_LOW | IRQF_ONESHOT,
|
||||||
id->name,
|
id->name,
|
||||||
indio_dev);
|
indio_dev);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
@ -754,7 +754,8 @@ static int __devinit adt7410_probe(struct i2c_client *client,
|
||||||
ret = request_threaded_irq(adt7410_platform_data[0],
|
ret = request_threaded_irq(adt7410_platform_data[0],
|
||||||
NULL,
|
NULL,
|
||||||
&adt7410_event_handler,
|
&adt7410_event_handler,
|
||||||
adt7410_platform_data[1],
|
adt7410_platform_data[1] |
|
||||||
|
IRQF_ONESHOT,
|
||||||
id->name,
|
id->name,
|
||||||
indio_dev);
|
indio_dev);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
|
|
@ -585,7 +585,8 @@ static int __devinit ad7150_probe(struct i2c_client *client,
|
||||||
NULL,
|
NULL,
|
||||||
&ad7150_event_handler,
|
&ad7150_event_handler,
|
||||||
IRQF_TRIGGER_RISING |
|
IRQF_TRIGGER_RISING |
|
||||||
IRQF_TRIGGER_FALLING,
|
IRQF_TRIGGER_FALLING |
|
||||||
|
IRQF_ONESHOT,
|
||||||
"ad7150_irq1",
|
"ad7150_irq1",
|
||||||
indio_dev);
|
indio_dev);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
@ -598,7 +599,8 @@ static int __devinit ad7150_probe(struct i2c_client *client,
|
||||||
NULL,
|
NULL,
|
||||||
&ad7150_event_handler,
|
&ad7150_event_handler,
|
||||||
IRQF_TRIGGER_RISING |
|
IRQF_TRIGGER_RISING |
|
||||||
IRQF_TRIGGER_FALLING,
|
IRQF_TRIGGER_FALLING |
|
||||||
|
IRQF_ONESHOT,
|
||||||
"ad7150_irq2",
|
"ad7150_irq2",
|
||||||
indio_dev);
|
indio_dev);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
|
Loading…
Reference in a new issue