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" wrote: >>On Tue Sep 15, 2026 at 1:15 PM CEST, Long Zhao via B4 Relay wrote: >>> From: Long Zhao >>> >>> 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