diff options
| author | Linus Walleij <linus.walleij@linaro.org> | 2016-09-23 08:51:18 -0400 |
|---|---|---|
| committer | Linus Walleij <linus.walleij@linaro.org> | 2016-09-23 08:51:18 -0400 |
| commit | 22a5db98a30ea734c29056b0d59cb4fe2a383bc2 (patch) | |
| tree | d1d5b3ee914e95f00b917ebf48b59fe8331a5734 /Documentation/gpio | |
| parent | 9132ce450bd141cd8c5776b41e90f146cae4bc3b (diff) | |
| parent | 79b804cb6af4f128b2c53f0887c02537a7eb5824 (diff) | |
Merge branch 'gpio-irq-validmask' of /home/linus/linux-pinctrl into devel
Diffstat (limited to 'Documentation/gpio')
| -rw-r--r-- | Documentation/gpio/driver.txt | 6 |
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: | |||
| 262 | to the container using container_of(). | 262 | to the container using container_of(). |
| 263 | (See Documentation/driver-model/design-patterns.txt) | 263 | (See Documentation/driver-model/design-patterns.txt) |
| 264 | 264 | ||
| 265 | If there is a need to exclude certain GPIOs from the IRQ domain, one can | ||
| 266 | set .irq_need_valid_mask of the gpiochip before gpiochip_add_data() is | ||
| 267 | called. This allocates .irq_valid_mask with as many bits set as there are | ||
| 268 | GPIOs in the chip. Drivers can exclude GPIOs by clearing bits from this | ||
| 269 | mask. The mask must be filled in before gpiochip_irqchip_add() is called. | ||
| 270 | |||
| 265 | * gpiochip_set_chained_irqchip(): sets up a chained irq handler for a | 271 | * gpiochip_set_chained_irqchip(): sets up a chained irq handler for a |
| 266 | gpio_chip from a parent IRQ and passes the struct gpio_chip* as handler | 272 | gpio_chip from a parent IRQ and passes the struct gpio_chip* as handler |
| 267 | data. (Notice handler data, since the irqchip data is likely used by the | 273 | data. (Notice handler data, since the irqchip data is likely used by the |
