summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpiolib.c
diff options
context:
space:
mode:
authorOctavian Purdila <octavian.purdila@intel.com>2014-09-19 23:22:44 +0300
committerLinus Walleij <linus.walleij@linaro.org>2014-09-24 10:53:42 +0200
commit295494af0695bc190e6b939df1036af898c2856f (patch)
treee25aaff1a68a794d720f597a48ee9206ce5994a2 /drivers/gpio/gpiolib.c
parent4f51b91335a63b2672a0f21fd13a684c8e35c4e8 (diff)
downloadtalos-obmc-linux-295494af0695bc190e6b939df1036af898c2856f.tar.gz
talos-obmc-linux-295494af0695bc190e6b939df1036af898c2856f.zip
gpiolib: add irq_not_threaded flag to gpio_chip
Some GPIO chips (e.g. the DLN2 USB adapter) have blocking get/set operation but do not need a threaded irq handler. Signed-off-by: Octavian Purdila <octavian.purdila@intel.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpiolib.c')
-rw-r--r--drivers/gpio/gpiolib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index 4acf8b2e9226..6fdae789ccc9 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -437,7 +437,7 @@ static int gpiochip_irq_map(struct irq_domain *d, unsigned int irq,
irq_set_lockdep_class(irq, &gpiochip_irq_lock_class);
irq_set_chip_and_handler(irq, chip->irqchip, chip->irq_handler);
/* Chips that can sleep need nested thread handlers */
- if (chip->can_sleep)
+ if (chip->can_sleep && !chip->irq_not_threaded)
irq_set_nested_thread(irq, 1);
#ifdef CONFIG_ARM
set_irq_flags(irq, IRQF_VALID);
OpenPOWER on IntegriCloud