Re: [PATCH v1 2/4] gpio: regmap: Provide default IRQ resource request and release callbacks
From: Andy Shevchenko
Date: Fri Jul 03 2026 - 07:29:52 EST
On Thu, Jul 02, 2026 at 02:42:55PM +0200, Andy Shevchenko wrote:
> When GPIO regmap based driver supplies its own IRQ domain, it might
> still want to keep track of the IRQ requests and releases, in particular
> to prevent a GPIO, which is used and locked as IRQ, to be requested
> via standard ways. Provide default callbacks for such cases and keep
> struct gpio_chip private to GPIO regmap implementation.
...
> +static int gpio_regmap_irq_reqres(void *irq_drv_data, irq_hw_number_t hwirq)
> +{
> + return gpio_regmap_reqres_irq(irq_drv_data, hwirq);
> +}
> +
> +static void gpio_regmap_irq_relres(void *irq_drv_data, irq_hw_number_t hwirq)
> +{
> + gpio_regmap_relres_irq(irq_drv_data, hwirq);
> +}
These two functions has to be part of the patch 3. I forgot to update this when
split a PoC to a series.
--
With Best Regards,
Andy Shevchenko