Hi, On Wed Jun 17, 2026 at 10:36 AM CEST, Yu-Chun Lin [林祐君] wrote: >>>>> Without an accessor like gpio_regmap_get_gpiochip(), we cannot >>>>> retrieve the gpio_chip instantiated inside gpio-regmap.c to fulfill >>>>> these requirements in our >>>>> map() function. >> >> Why is gpiochip_irq_reqres() called in the first place? Isn't that only >> called if the irq handling is set up via gc->irq.chip and not via >> gpiochip_irqchip_add_domain() like in gpio-regmap? >> > > The panic was caused by my driver including 'GPIOCHIP_IRQ_RESOURCE_HELPERS', > which forced the call to 'gpiochip_irq_reqres()' and crashed. But why did you use it if your irq domain isn't managed by the gpiolib, but rather your own irq domain? Before going with option #3 I'd double check if that is correct in your driver. -michael