]> 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)
commitd8ba9edf23e75d8c184d5f433d0033c780f6457b
treefb1c16fc1321c05cd4ea790bba12e75d69decddd
parent6b69aa8de347d48426370aca41376f5250d69986
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