Re: (subset) [RFT PATCH] mfd: max77620: Fix potential IRQ chip conflict when probing two devices
From: Lee Jones
Date: Thu Nov 06 2025 - 08:17:55 EST
On Thu, 23 Oct 2025 12:19:40 +0200, Krzysztof Kozlowski wrote:
> MAX77620 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 max77620_chip'). devm_regmap_add_irq_chip() does not
> make a copy of 'struct regmap_irq_chip' but store the pointer.
>
> [...]
Applied, thanks!
[1/1] mfd: max77620: Fix potential IRQ chip conflict when probing two devices
commit: a65059b3e91b811aff2ccfd53578e06384779ef7
--
Lee Jones [李琼斯]