[RFT PATCH v2 05/14] gpio: axiado-sgpio: create the IRQ domain from the gpio-regmap callback

Petar Stepanovic pstepanovic at axiado.com
Mon Nov 30 06:51:37 PST 2026


On 11/27/2026 3:52 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.
>
> Don't use device managed resources anymore. Instead use the new
> .remove_irq_domain() callback. The driver didn't dispose any of the IRQ
> mappings before, although irq_domain_remove() mandates that. Thus add
> that to this callback, too.

Tested v2 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 <mailto:pstepanovic at axiado.com>




More information about the linux-arm-kernel mailing list