Re: [PATCH v2] net: ethernet: ti: cpsw: fix extra rx interrupt

From: David Miller
Date: Sat Dec 07 2019 - 14:57:15 EST


From: Grygorii Strashko <grygorii.strashko@xxxxxx>
Date: Fri, 6 Dec 2019 14:28:20 +0200

> Now RX interrupt is triggered twice every time, because in
> cpsw_rx_interrupt() it is asked first and then disabled. So there will be
> pending interrupt always, when RX interrupt is enabled again in NAPI
> handler.
>
> Fix it by first disabling IRQ and then do ask.
>
> Fixes: 870915feabdc ("drivers: net: cpsw: remove disable_irq/enable_irq as irq can be masked from cpsw itself")
> Signed-off-by: Grygorii Strashko <grygorii.strashko@xxxxxx>

Applied and queued up for -stable.