[PATCH net-next v7 08/14] net: lan966x: clear FDMA interrupt stickies after switch reset

Simon Horman horms at kernel.org
Wed Sep 23 02:01:23 PDT 2026


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 at bootlin.com>
> Signed-off-by: Daniel Machon <daniel.machon at microchip.com>

Reviewed-by: Simon Horman <horms at kernel.org>




More information about the linux-arm-kernel mailing list