]> git.baikalelectronics.ru Git - kernel.git/commit
net: mediatek: fix mtk_pending_work
authorJohn Crispin <blogic@openwrt.org>
Thu, 7 Apr 2016 22:54:09 +0000 (00:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Apr 2016 02:41:32 +0000 (22:41 -0400)
commit77aa32f3a6db5549e9d98fe70f3408894e158ea2
treeb3ed88f5546f9b6bdd963493f997fd6ba81323da
parent7e828568eaaf6347acceda9185e9149743f13233
net: mediatek: fix mtk_pending_work

The driver supports 2 MACs. Both run on the same DMA ring. If we hit a TX
timeout we need to stop both netdevs before restarting them again. If we
don't do this, mtk_stop() wont shutdown DMA and the consecutive call to
mtk_open() wont restart DMA and enable IRQs.

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