summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mediatek/mtk_eth_soc.h
diff options
context:
space:
mode:
authorJohn Crispin2016-06-29 13:38:10 +0200
committerDavid S. Miller2016-06-30 14:52:04 +0200
commit7bc9ccec34f5260bf698de5d5c0366b6c6ef6c9e (patch)
tree0d6ab413668cf0c0d8366f5e45ee073234bdee63 /drivers/net/ethernet/mediatek/mtk_eth_soc.h
parentnet-next: mediatek: don't use intermediate variables to store IRQ masks (diff)
downloadkernel-qcow2-linux-7bc9ccec34f5260bf698de5d5c0366b6c6ef6c9e.tar.gz
kernel-qcow2-linux-7bc9ccec34f5260bf698de5d5c0366b6c6ef6c9e.tar.xz
kernel-qcow2-linux-7bc9ccec34f5260bf698de5d5c0366b6c6ef6c9e.zip
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>
Diffstat (limited to 'drivers/net/ethernet/mediatek/mtk_eth_soc.h')
-rw-r--r--drivers/net/ethernet/mediatek/mtk_eth_soc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.h b/drivers/net/ethernet/mediatek/mtk_eth_soc.h
index a5eb7c62306b..3159d2a46ab1 100644
--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.h
+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.h
@@ -373,6 +373,7 @@ struct mtk_eth {
void __iomem *base;
struct reset_control *rstc;
spinlock_t page_lock;
+ spinlock_t irq_lock;
struct net_device dummy_dev;
struct net_device *netdev[MTK_MAX_DEVS];
struct mtk_mac *mac[MTK_MAX_DEVS];