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)
commite7d425dcea032f1d0b44b6fa4c6735f13882de6e
treeb3ed88f5546f9b6bdd963493f997fd6ba81323da
parent34c2e4c9e9b3e434a31f67eecf603dc1496c8cc9
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