Re: [PATCH net] dwc_eth_qos: fix interrupt enable race
From: David Miller
Date: Tue Aug 23 2016 - 20:19:44 EST
From: Lars Persson <lars.persson@xxxxxxxx>
Date: Tue, 23 Aug 2016 16:31:28 +0200
> From: Rabin Vincent <rabinv@xxxxxxxx>
>
> We currently enable interrupts before we enable NAPI. If an RX interrupt
> hits before we enabled NAPI then the NAPI callback is never called and
> we leave the hardware with RX interrupts disabled, which of course leads
> us to never handling received packets. Fix this by moving the interrupt
> enable to after we've enable NAPI and the reclaim tasklet.
>
> Fixes: cd5e41234729 ("dwc_eth_qos: do phy_start before resetting hardware")
> Signed-off-by: Rabin Vincent <rabinv@xxxxxxxx>
> Signed-off-by: Lars Persson <larper@xxxxxxxx>
Applied.