]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9890a36995132a72d3862ef5bdacd7c2b1c6bab6
tree0d6ab413668cf0c0d8366f5e45ee073234bdee63
parent04910e006654e18297e4f23ba73683e7c56fc3ff
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