Commit 364fadb3 authored by Daniel Gl?ckner's avatar Daniel Gl?ckner Committed by Linus Torvalds

gpiolib: allow nested threaded irqs for poll(2)

The pca953x driver requires the use of threaded irqs as its irq
demultiplexer can sleep.  Our irq handler can be called from any context,
so use request_any_context_irq to allow threaded irqs as well.
Signed-off-by: default avatarDaniel Gl?ckner <>
Reported-by: default avatarIan Jeffray <>
Cc: David Brownell <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 5ba1821d
......@@ -386,9 +386,9 @@ static int gpio_setup_irq(struct gpio_desc *desc, struct device *dev,
ret = request_irq(irq, gpio_sysfs_irq, irq_flags,
ret = request_any_context_irq(irq, gpio_sysfs_irq, irq_flags,
"gpiolib", value_sd);
if (ret)
if (ret < 0)
goto free_id;
desc->flags |= gpio_flags;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment