kernel_optimize_test/Documentation/gpio
Mika Westerberg 79b804cb6a gpiolib: Make it possible to exclude GPIOs from IRQ domain
When using GPIO irqchip helpers to setup irqchip for a gpiolib based
driver, it is not possible to select which GPIOs to add to the IRQ domain.
Instead it just adds all GPIOs which is not always desired. For example
there might be GPIOs that for some reason cannot generated normal
interrupts at all.

To support this we add a flag irq_need_valid_mask to struct gpio_chip. When
this flag is set the core allocates irq_valid_mask that holds one bit for
each GPIO the chip has. By default all bits are set but drivers can
manipulate this using set_bit() and clear_bit() accordingly.

Then when gpiochip_irqchip_add() is called, this mask is checked and all
GPIOs with bit is set are added to the IRQ domain created for the GPIO
chip.

Suggested-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2016-09-23 14:49:50 +02:00
..
00-INDEX gpio: document interaction with other subsystems 2015-07-21 11:39:32 +02:00
board.txt gpio: documenatation: fix GPIO_LOOKUP{,_IDX} documentation 2016-02-25 16:01:51 +01:00
consumer.txt Doc: gpio: Fix typos in Documentation/gpio 2015-11-20 16:51:16 -07:00
driver.txt gpiolib: Make it possible to exclude GPIOs from IRQ domain 2016-09-23 14:49:50 +02:00
drivers-on-gpio.txt gpio: Fix paths to GPIO driver source files 2016-06-13 09:30:31 +02:00
gpio-legacy.txt gpio: remove gpiod_sysfs_set_active_low 2015-05-12 10:46:53 +02:00
gpio.txt
sysfs.txt Typo correction for description in gpio document. 2015-10-11 15:39:01 -06:00