Re: [PATCH 1/2] regulator: pca9450: Correct interrupt type

From: Laurent Pinchart

Date: Mon Mar 23 2026 - 06:59:09 EST


On Tue, Mar 10, 2026 at 01:15:34PM +0000, Mark Brown wrote:
> On Tue, Mar 10, 2026 at 12:25:52PM +0800, Peng Fan (OSS) wrote:
> > From: Peng Fan <peng.fan@xxxxxxx>
> >
> > Kernel warning on i.MX8MP-EVK when doing module test:
> > irq: type mismatch, failed to map hwirq-3 for gpio@30200000!
> >
> > Per PCA945[X] specification: The IRQ_B pin is pulled low when any unmasked
> > interrupt bit status is changed and it is released high once application
> > processor read INT1 register.
> >
> > So the interrupt should be configured as IRQF_TRIGGER_LOW, not
> > IRQF_TRIGGER_FALLING.
>
> There appear to be a bunch of DTS files which specify edge triggered
> interrupts for these devices (eg, imx8mm-emtop-som.dtsi and
> imx8mp-debix-model-a.dts) though more getting it right. Not an issue
> for this patch but probably wants cleaning up.

This patch creates an interrupt storm on the i.MX8MP-based Debix Model A
board. I'm getting about 700 interrupts per second from the PMIC (and
about 3000 interrupts per second from the I2C controller).

arch/arm64/boot/dts/freescale/imx8mp-debix-model-a.dts specifies the
PMIC interrupt as IRQ_TYPE_EDGE_RISING, setting it to IRQ_TYPE_LEVEL_LOW
does not help.

Peng, I can run test to debug the issue if you tell me what to test. I'd
like to fix the problem and avoid an annoying regression in v7.0, either
with a follow-up patch, or with a revert if we're too short on time.

--
Regards,

Laurent Pinchart