All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iio: st_sensors: request any context IRQ
@ 2015-11-12 13:12 Linus Walleij
  2015-11-14 18:36 ` Jonathan Cameron
  0 siblings, 1 reply; 5+ messages in thread
From: Linus Walleij @ 2015-11-12 13:12 UTC (permalink / raw)
  To: Jonathan Cameron, linux-iio; +Cc: Linus Walleij, Denis Ciocca

It really doesn't matter if the poll is triggered from a
fastpath or threaded IRQ, the IIO core runs its own interrupt
thread anyway. Sometimes this is connected to a hard IRQ line,
sometimes to something on an I2C expander that needs to
run from a thread, so request any context IRQ.

Cc: Denis Ciocca <denis.ciocca@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 drivers/iio/common/st_sensors/st_sensors_trigger.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/iio/common/st_sensors/st_sensors_trigger.c b/drivers/iio/common/st_sensors/st_sensors_trigger.c
index 3c0aa17d753f..e33796cdd607 100644
--- a/drivers/iio/common/st_sensors/st_sensors_trigger.c
+++ b/drivers/iio/common/st_sensors/st_sensors_trigger.c
@@ -32,9 +32,8 @@ int st_sensors_allocate_trigger(struct iio_dev *indio_dev,
 		goto iio_trigger_alloc_error;
 	}
 
-	err = request_threaded_irq(sdata->get_irq_data_ready(indio_dev),
+	err = request_any_context_irq(sdata->get_irq_data_ready(indio_dev),
 			iio_trigger_generic_data_rdy_poll,
-			NULL,
 			IRQF_TRIGGER_RISING,
 			sdata->trig->name,
 			sdata->trig);
-- 
2.4.3


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-11-17  8:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-12 13:12 [PATCH] iio: st_sensors: request any context IRQ Linus Walleij
2015-11-14 18:36 ` Jonathan Cameron
2015-11-15 16:22   ` Linus Walleij
2015-11-15 17:32     ` Jonathan Cameron
2015-11-17  8:25       ` Jonathan Cameron

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.