]> git.baikalelectronics.ru Git - kernel.git/commit
net: axienet: Service completion interrupts ASAP
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>
Tue, 5 May 2015 09:25:56 +0000 (11:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 May 2015 23:33:58 +0000 (19:33 -0400)
commit06e44ad8a18170a31d61858ef1a8f307d8e59ee0
treefb1c16fc1321c05cd4ea790bba12e75d69decddd
parenta12891360851f8f7a0121c1190a3ce69978c6f29
net: axienet: Service completion interrupts ASAP

The packet completion interrupts for TX and RX should be serviced before
the packets are consumed. This ensures against the degenerate case when a
new completion interrupt is raised after the handler has exited but before
the interrupts are cleared. In this case its possible for the ISR to clear
an unhandled interrupt (leading to potential deadlock).

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Tested-by: Jason Wu <huanyu@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xilinx/xilinx_axienet_main.c