Pull gpio fixes from Bartosz Golaszewski: - fix IRQ initialization in gpiochip_irqchip_add_domain() - add a missing return value check for platform_get_irq() in gpio-sifive - don't free irq_domains which GPIOLIB does not manage * tag 'gpio-fixes-for-v6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux: gpiolib: Fix irq_domain resource tracking for gpiochip_irqchip_add_domain() gpio: sifive: add missing check for platform_get_irq gpiolib: Fix GPIO chip IRQ initialization restriction
Showing the changes to include (1 of 3 files). Show all
Unified · Split
| @@ -251,6 +251,14 @@ struct gpio_irq_chip { · 250 unmodified lines | |||
| 251 | */ | 251 | */ |
| 252 | bool initialized; | 252 | bool initialized; |
| 253 | 253 | ||
| 254 | /** | ||
| 255 | * @domain_is_allocated_externally: | ||
| 256 | * | ||
| 257 | * True it the irq_domain was allocated outside of gpiolib, in which | ||
| 258 | * case gpiolib won't free the irq_domain itself. | ||
| 259 | */ | ||
| 260 | bool domain_is_allocated_externally; | ||
| 261 | |||
| 254 | /** | 262 | /** |
| 255 | * @init_hw: optional routine to initialize hardware before | 263 | * @init_hw: optional routine to initialize hardware before |
| 256 | * an IRQ chip will be added. This is quite useful when | 264 | * an IRQ chip will be added. This is quite useful when |