aboutsummaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorLinus Walleij2016-09-23 14:50:14 +0200
committerLinus Walleij2016-09-23 14:50:14 +0200
commitccf1e9e1c0072088420aad42797986d6e74366b5 (patch)
tree4576822ae245e96f0031c7448ac2b7376bd72e8d /Documentation
parent31ebe86d6ef5f3280705e7ac9ab366f60f4e699c (diff)
parent79b804cb6af4f128b2c53f0887c02537a7eb5824 (diff)
Merge branch 'gpio-irq-validmask' into devel
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/gpio/driver.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/gpio/driver.txt b/Documentation/gpio/driver.txt
index 6cb35a78eff4..368d5a294d89 100644
--- a/Documentation/gpio/driver.txt
+++ b/Documentation/gpio/driver.txt
@@ -262,6 +262,12 @@ symbol:
to the container using container_of().
(See Documentation/driver-model/design-patterns.txt)
+ If there is a need to exclude certain GPIOs from the IRQ domain, one can
+ set .irq_need_valid_mask of the gpiochip before gpiochip_add_data() is
+ called. This allocates .irq_valid_mask with as many bits set as there are
+ GPIOs in the chip. Drivers can exclude GPIOs by clearing bits from this
+ mask. The mask must be filled in before gpiochip_irqchip_add() is called.
+
* gpiochip_set_chained_irqchip(): sets up a chained irq handler for a
gpio_chip from a parent IRQ and passes the struct gpio_chip* as handler
data. (Notice handler data, since the irqchip data is likely used by the