mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:24:47 +01:00
iio: Use IRQF_NO_THREAD
The interrupt handler iio_trigger_generic_data_rdy_poll() will invoke other interrupt handler and this supposed to happen from within the hardirq. Use IRQF_NO_THREAD to forbid forced-threading. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
parent
f52690c508
commit
04d390af97
4 changed files with 8 additions and 9 deletions
|
|
@ -986,8 +986,9 @@ static int bma180_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
ret = devm_request_irq(dev, client->irq,
|
||||
iio_trigger_generic_data_rdy_poll, IRQF_TRIGGER_RISING,
|
||||
"bma180_event", data->trig);
|
||||
iio_trigger_generic_data_rdy_poll,
|
||||
IRQF_TRIGGER_RISING | IRQF_NO_THREAD,
|
||||
"bma180_event", data->trig);
|
||||
if (ret) {
|
||||
dev_err(dev, "unable to request IRQ\n");
|
||||
goto err_trigger_free;
|
||||
|
|
|
|||
|
|
@ -261,7 +261,7 @@ static int ad7766_probe(struct spi_device *spi)
|
|||
* don't enable the interrupt to avoid extra load on the system
|
||||
*/
|
||||
ret = devm_request_irq(&spi->dev, spi->irq, ad7766_irq,
|
||||
IRQF_TRIGGER_FALLING | IRQF_NO_AUTOEN,
|
||||
IRQF_TRIGGER_FALLING | IRQF_NO_AUTOEN | IRQF_NO_THREAD,
|
||||
dev_name(&spi->dev),
|
||||
ad7766->trig);
|
||||
if (ret < 0)
|
||||
|
|
|
|||
|
|
@ -118,11 +118,9 @@ int itg3200_probe_trigger(struct iio_dev *indio_dev)
|
|||
if (!st->trig)
|
||||
return -ENOMEM;
|
||||
|
||||
ret = request_irq(st->i2c->irq,
|
||||
&iio_trigger_generic_data_rdy_poll,
|
||||
IRQF_TRIGGER_RISING,
|
||||
"itg3200_data_rdy",
|
||||
st->trig);
|
||||
ret = request_irq(st->i2c->irq, &iio_trigger_generic_data_rdy_poll,
|
||||
IRQF_TRIGGER_RISING | IRQF_NO_THREAD,
|
||||
"itg3200_data_rdy", st->trig);
|
||||
if (ret)
|
||||
goto error_free_trig;
|
||||
|
||||
|
|
|
|||
|
|
@ -1248,7 +1248,7 @@ static int si1145_probe_trigger(struct iio_dev *indio_dev)
|
|||
|
||||
ret = devm_request_irq(&client->dev, client->irq,
|
||||
iio_trigger_generic_data_rdy_poll,
|
||||
IRQF_TRIGGER_FALLING,
|
||||
IRQF_TRIGGER_FALLING | IRQF_NO_THREAD,
|
||||
"si1145_irq",
|
||||
trig);
|
||||
if (ret < 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue