[RFT PATCH 04/13] gpio: axiado-sgpio: create the IRQ domain from the gpio-regmap callback

Petar Stepanovic pstepanovic at axiado.com
Mon Nov 30 01:39:38 PST 2026


On 11/26/2026 4:35 PM, Michael Walle wrote:
> CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
>
>
> Use the new .create_irq_domain() to actually create the domain. This
> way, there is no window where a NULL pointer could be dereferenced in
> the irq callbacks.
>
> Switch the irq host_data to the gpio_regmap pointer because it will
> already be needed in the irq domain callbacks. Otherwise, the
> .create_irq_domain() callback would have to set the sgpio->gpio pointer
> which looks odd.
>

Tested on the Axiado AX3005 SoC using an SGPIO hardware loopback setup.

GPIO read/write operations and rising/falling edge interrupts work as expected. No regressions observed.

Tested-by: Petar Stepanovic <pstepanovic at axiado.com>

Thanks,
Petar



More information about the linux-arm-kernel mailing list