]> git.baikalelectronics.ru Git - kernel.git/commit
dwc_eth_qos: fix interrupt enable race
authorRabin Vincent <rabinv@axis.com>
Tue, 23 Aug 2016 14:31:28 +0000 (16:31 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Aug 2016 00:11:05 +0000 (17:11 -0700)
commitbf5757f7f17dba5d38c8f0316036b9d494d50a81
treeaeab620c0607964606a882366e87731c98078657
parent0223f135d0e8817cd2d6d85111c0645179332177
dwc_eth_qos: fix interrupt enable race

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: 754ede6ae891 ("dwc_eth_qos: do phy_start before resetting hardware")
Signed-off-by: Rabin Vincent <rabinv@axis.com>
Signed-off-by: Lars Persson <larper@axis.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/synopsys/dwc_eth_qos.c