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

Thomas Gleixner <[email protected]>
Newsgroups dev.linux.lists.imx,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-kernel
Message-ID <87wltmjctl.ffs@fw13>
On Wed, Aug 19 2026 at 18:05, Zhipeng wrote:
> From: Zhipeng Wang <[email protected]>
>
> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.