This adds the two new functions gpiochip_irq_domain_activate and gpiochip_irq_domain_deactivate that can be used as the activate and deactivate functions in the struct irq_domain_ops. This is for situations where only gpiochip_{lock,unlock}_as_irq needs to be called. SPMI and SSBI GPIO are two users that will initially use these functions.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -472,6 +472,11 @@ int gpiochip_irq_map(struct irq_domain *d, unsigned int irq, · 471 unmodified lines | |||
| 472 | irq_hw_number_t hwirq); | 472 | irq_hw_number_t hwirq); |
| 473 | void gpiochip_irq_unmap(struct irq_domain *d, unsigned int irq); | 473 | void gpiochip_irq_unmap(struct irq_domain *d, unsigned int irq); |
| 474 | 474 | ||
| 475 | int gpiochip_irq_domain_activate(struct irq_domain *domain, | ||
| 476 | struct irq_data *data, bool reserve); | ||
| 477 | void gpiochip_irq_domain_deactivate(struct irq_domain *domain, | ||
| 478 | struct irq_data *data); | ||
| 479 | |||
| 475 | void gpiochip_set_chained_irqchip(struct gpio_chip *gpiochip, | 480 | void gpiochip_set_chained_irqchip(struct gpio_chip *gpiochip, |
| 476 | struct irq_chip *irqchip, | 481 | struct irq_chip *irqchip, |
| 477 | unsigned int parent_irq, | 482 | unsigned int parent_irq, |