diff options
author | Octavian Purdila | 2014-09-19 22:22:44 +0200 |
---|---|---|
committer | Linus Walleij | 2014-09-24 10:53:42 +0200 |
commit | 295494af0695bc190e6b939df1036af898c2856f (patch) | |
tree | e25aaff1a68a794d720f597a48ee9206ce5994a2 /include/linux/gpio | |
parent | gpio: Fix return value check in xgene_gpio_probe() (diff) | |
download | kernel-qcow2-linux-295494af0695bc190e6b939df1036af898c2856f.tar.gz kernel-qcow2-linux-295494af0695bc190e6b939df1036af898c2856f.tar.xz kernel-qcow2-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 'include/linux/gpio')
-rw-r--r-- | include/linux/gpio/driver.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h index 560bf7fa614f..719fab209158 100644 --- a/include/linux/gpio/driver.h +++ b/include/linux/gpio/driver.h @@ -56,6 +56,8 @@ struct seq_file; * as the chip access may sleep when e.g. reading out the IRQ status * registers. * @exported: flags if the gpiochip is exported for use from sysfs. Private. + * @irq_not_threaded: flag must be set if @can_sleep is set but the + * IRQs don't need to be threaded * * A gpio_chip can help platforms abstract various sources of GPIOs so * they can all be accessed through a common programing interface. @@ -101,6 +103,7 @@ struct gpio_chip { struct gpio_desc *desc; const char *const *names; bool can_sleep; + bool irq_not_threaded; bool exported; #ifdef CONFIG_GPIOLIB_IRQCHIP |