[RFT PATCH v2 07/14] gpio: max7360: create the regmap-irq chip from the gpio-regmap callback
Andy Shevchenko
andriy.shevchenko at linux.intel.com
Thu Dec 3 02:16:22 PST 2026
On Mon, Nov 30, 2026 at 01:58:29PM +0100, Michael Walle wrote:
> On Fri Nov 27, 2026 at 7:48 PM CET, Andy Shevchenko wrote:
> > On Fri, Nov 27, 2026 at 03:52:24PM +0100, Michael Walle wrote:
...
> >> Use the new gpio_regmap_add_irq_chip() helper to create the regmap-irq
> >> domain.
> >
> > Okay, but now it makes me think why we don't call regmap_del_irq_chip()...
> > Missing part?
>
> We do, but it is the core which is doing it automatically, see
> gpio_regmap_unregister() and the kernel-doc for the helper. The
> regmap-irq irqchip is owned by the core so to speak. Whereas, for an
> external domain, the driver has manage it, thus we'll need the
> .remove_irq_domain() callback.
Ah, okay, so there is a symmetry still provided.
--
With Best Regards,
Andy Shevchenko
More information about the linux-arm-kernel
mailing list