[PATCH] imx93_frdm: clear and mask TCPC interrupts
Fabio Estevam
festevam at gmail.com
Sun Jan 4 00:41:16 CET 2026
Hi Francesco,
On Sat, Jan 3, 2026 at 6:22 PM Francesco Valla <francesco at valla.it> wrote:
>
> One of the two on-board PTN5110 TCPC USB Power Delivery controller on
> the i.MX93 FRDM board shares its interrupt line whith the PCAL6524 power
> controller (GPIO3-27). Since the PTN5110 starts after POR with the
> interrupts enabled, this can lead to an interrupt storm on OS startup if
> only the driver for the PCAL6524 is loaded, because none is servicing
> (and clearing) the interrupt requests from the PTN5110.
>
> Maks and clear all interrupts as part uring board initialization; they
> can be re-enabled later by a proper OS driver if required.
>
> Co-developed-by: Joseph Guo <qijian.guo at nxp.com>
> Signed-off-by: Francesco Valla <francesco at valla.it>
> ---
> Interrupt storms have been observed during the Linux kernel startup on
> the i.MX93 FRDM [0], leading to the IRQ functionality being disabled for
> the involved IRQ line. Even in case the IRQ line is not disabled,
> several thousands of interrupts can be observed:
>
> 94: 55749 0 gpio-vf610 27 Level 1-0022, 2-0050
>
> This has been traced to the interrupt sharing for one of the on-board
> PTN5110 TCPC and the PCAL6524 I/O expander. The same behavior was
> observed and fixed on the i.MX91 FRDM [1], so the proposed solution
> is the same: to mask and clear all PTN5110 interrupts during board
> configuration.
>
> With this patch applied, the interrupt line is completely silent on
> startup:
>
> 94: 0 0 gpio-vf610 27 Level 1-0022, 2-0050
>
> I added the Co-developed-by tag giving credit to Joseph Guo since the
> technical solution is theirs, as developed for the i.MX91 FRDM.
>
> [0] https://lore.kernel.org/all/20251230171548.67289601@windsurf
> [1] https://lore.kernel.org/all/aTDyW8Rm1u6hWUuc@lsvm11u0000395.swis.ap-northeast-2.aws.nxp.com
Thanks for your patch.
Reviewed-by: Fabio Estevam <festevam at gmail.com>
It would be nice if Thomas could confirm that this fixes the issue he reported.
Thanks
More information about the U-Boot
mailing list