[PATCH v7 09/15] gpiolib: regmap: add gpio_regmap_get_chip()
Michael Walle
michael at walle.cc
Tue Sep 22 23:57:00 PDT 2026
Hi,
On Tue Sep 22, 2026 at 6:22 AM CEST, zl020895 wrote:
> gpio-regmap can already attach a domain via config.irq_domain or
> regmap_irq_chip. PL061 cannot use regmap-irq: type is programmed in
> IS/IBE/IEV (including both-edge) and the parent IRQ is an AMBA chained
> demux.
>
> In v8 the custom linear domain used the gpio_chip as host_data, and
> that chip only exists after gpio_regmap_register(), so I added
> gpio_regmap_get_chip().
>
> I can drop the helper: create the domain with the PL061 private data as
> host_data, pass it in config.irq_domain, and let gpio-regmap register
> it. I will do that in the next revision if you agree.
Yes please. You shouldn't need any of gpio_chip members.
-michael
> At 2026-09-21 20:48:44, "Michael Walle" <michael at walle.cc> wrote:
>>On Tue Sep 15, 2026 at 1:15 PM CEST, Long Zhao via B4 Relay wrote:
>>> From: Long Zhao <longzhao at ambarella.com>
>>>
>>> Let drivers that implement a custom irqchip retrieve the gpio_chip
>>> after registration. Attach a caller-provided irq_domain only when it
>>> is present.
>>
>>So why do we need this? Why can't gpio-regmap register the
>>irq_domain?
>>
>>-michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 297 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20260923/bd8e6fb8/attachment.sig>
More information about the linux-arm-kernel
mailing list