net-next: mediatek: add IRQ locking
authorJohn Crispin <john@phrozen.org>
Wed, 29 Jun 2016 11:38:10 +0000 (13:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Jun 2016 12:52:04 +0000 (08:52 -0400)
commit7bc9ccec34f5260bf698de5d5c0366b6c6ef6c9e
tree0d6ab413668cf0c0d8366f5e45ee073234bdee63
parenteece71e8fb0953e18e3ac631b4414bb21af924a7
net-next: mediatek: add IRQ locking

The code that enables and disables IRQs is missing proper locking. After
adding the IRQ grouping patch and routing the RX and TX IRQs to different
cores we experienced IRQ stalls. Fix this by adding proper locking.
We use a dedicated lock to reduce the latency if the IRQ code.

Signed-off-by: John Crispin <john@phrozen.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c
drivers/net/ethernet/mediatek/mtk_eth_soc.h