Re:Re: [PATCH v13 09/13] gpiolib: request ACPI GPIO events for external IRQ domains
From: zl020895
Date: Tue Nov 03 2026 - 23:53:53 EST
At 2026-11-03 19:58:49, "Andy Shevchenko" <andriy.shevchenko@xxxxxxxxxxxxxxx> wrote:
>> + acpi_gpiochip_request_interrupts(gc);
>
>In such a case where is the freeing these requested interrupts?
Hi Andy,
gpiochip_remove() always calls gpiochip_irqchip_remove(), which frees
the ACPI events before it looks at the domain:
gpiochip_remove()
-> gpiochip_irqchip_remove()
-> acpi_gpiochip_free_interrupts(gc)
-> if (!gc->irq.domain_is_allocated_externally)
dispose mappings / remove domain
domain_is_allocated_externally only skips the domain teardown. The
events requested in gpiochip_irqchip_add_domain() are released on that
path. PL061 goes through it via gpio_regmap_unregister().
I will drop the duplicate Cc for Mika and move the Cc list below the
'---' marker in v14.
Best regards,
Long Zhao