On Thu, 23 Oct 2025 12:29:06 +0200, Krzysztof Kozlowski wrote:
MAX77705 charger is most likely always a single device on the board, however nothing stops board designers to have two of them, thus same device driver could probe twice. Or user could manually try to probing second time.
Device driver is not ready for that case, because it allocates statically 'struct regmap_irq_chip' as non-const and stores during probe in 'irq_drv_data' member a pointer to per-probe state container ('struct max77705_charger_data'). devm_regmap_add_irq_chip() does not make a copy of 'struct regmap_irq_chip' but stores the pointer.
[...]
Applied, thanks!
[1/1] power: supply: max77705: Fix potential IRQ chip conflict when probing two devices commit: 1cb053ea2e1dedd8f2d9653b7c3ca5b93c8c9275
Best regards,