]> git.baikalelectronics.ru Git - kernel.git/commit
net-next: mediatek: split IRQ register locking into TX and RX
authorJohn Crispin <john@phrozen.org>
Mon, 19 Jun 2017 13:37:05 +0000 (15:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Jun 2017 17:40:35 +0000 (13:40 -0400)
commit0fee3f6159fa302d7332bc6908b53b94c0c413aa
tree553551f87fa8e7dac0859d7d9c5171b447b8da5a
parent29ca4e5033e0fb095ff61259b16aad11e0070b2a
net-next: mediatek: split IRQ register locking into TX and RX

Originally the driver only utilised the new QDMA engine. The current code
still assumes this is the case when locking the IRQ mask register. Since
RX now runs on the old style PDMA engine we can add a second lock. This
patch reduces the IRQ latency as the TX and RX path no longer need to wait
on each other under heavy load.

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