History

Merge tag 'gpio-fixes-for-v6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux

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

Linus Torvalds committed 3 years ago

Commit 6edecb92 parents afa4bb7 ff7a1793 files · +24 −3Browse files

Showing the changes to include (1 of 3 files). Show all

Unified · Split

include/linux/gpio/driver.h+8−0
@@ -251,6 +251,14 @@ struct gpio_irq_chip { · 250 unmodified lines
251251 */
252252 bool initialized;
253253
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+
254262 /**
255263 * @init_hw: optional routine to initialize hardware before
256264 * an IRQ chip will be added. This is quite useful when