Re: [PATCH v4 1/5] genirq/irqdomain: Add devm_irq_domain_create_linear()

From: Thomas Gleixner

Date: Wed Aug 19 2026 - 12:27:30 EST


On Wed, Aug 19 2026 at 18:05, Zhipeng wrote:
> From: Zhipeng Wang <zhipeng.wang_1@xxxxxxx>
>
> irq_domain_create_linear() has no devres-managed counterpart, so every
> driver that wants the domain torn down automatically on unbind has to
> either open-code an irq_domain_info and call
> devm_irq_domain_instantiate() directly, or register a manual devm action.

I'm not opposed to add this, but adding this as a prerequisite for a
backportable fix is bogus.

Just open code the domain info in driver and use
devm_irq_domain_instantiate() for the initial backportable fix and then
mop up the thing _after_ all fixes are done.

Thanks,

tglx