Re: [PATCH net-next v7 08/14] net: lan966x: clear FDMA interrupt stickies after switch reset
From: Simon Horman
Date: Wed Sep 23 2026 - 05:26:24 EST
On Fri, Sep 18, 2026 at 01:34:00PM +0200, Daniel Machon wrote:
> When in PCI mode, the GCB soft reset issued by the reset controller
> can latch spurious bits in the FDMA error stickies. The latched bits
> sit in FDMA_INTR_ERR until the FDMA IRQ is requested later in probe,
> at which point the handler fires immediately and WARNs.
>
> Clear FDMA_ERRORS, FDMA_INTR_ERR and FDMA_INTR_DB right after the
> switch reset so the FDMA comes out clean and the IRQ handler does not
> see ghost errors on probe.
>
> The clear runs on both the PCI and platform paths. On the platform
> path it has no effect — there are no spurious stickies to clear — but
> keeping it unconditional avoids a PCI-specific code path here.
>
> Tested-by: Herve Codina <herve.codina@xxxxxxxxxxx>
> Signed-off-by: Daniel Machon <daniel.machon@xxxxxxxxxxxxx>
Reviewed-by: Simon Horman <horms@xxxxxxxxxx>