[PATCH v2] mfd: mt6397: Use PMIC specific interrupt count for domain creation
Chen-Yu Tsai
wenst at chromium.org
Tue Nov 10 18:30:39 PST 2026
On Wed, Nov 11, 2026 at 7:51 AM Ben Grisdale <bengris32 at protonmail.ch> wrote:
>
> mt6397_irq_init() currently creates its IRQ domain with a fixed number
> of interrupts (MT6397_IRQ_NR). However, not every PMIC supported by this
> driver has the same number of interrupts as the MT6397. The MT6328 has
> 47 interrupts, so its interrupts above MT6397_IRQ_NR (32) are currently
> unusable.
>
> Correct this by passing the PMIC's actual interrupt count to
> irq_domain_create_linear() based on the chip ID. Define the missing
> interrupt count for MT6328, as the other supported PMICs already have
> it defined.
>
> Fixes: 6e31bb8d3a63 ("mfd: mt6397: Add initial support for MT6328")
> Signed-off-by: Ben Grisdale <bengris32 at protonmail.ch>
Changes make sense to me, and it also seems to fix MT6332.
Reviewed-by: Chen-Yu Tsai <wenst at chromium.org>
More information about the Linux-mediatek
mailing list