]> 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)
commit9895d46d40459b5ec66b776869a33c60fce968fa
tree0d6ab413668cf0c0d8366f5e45ee073234bdee63
parent14489fc2c7b30d4be214f12c82a67cc27e96963d
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