diff options
author | Nelson Chang <nelson.chang@mediatek.com> | 2016-09-26 08:33:49 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-27 15:41:31 +0200 |
commit | 6bf563d50af2de34024bde0de1733d4028f9400c (patch) | |
tree | 7d851d74e2d636199f5c668620f2536ccb5fab02 /drivers/net/ethernet/mediatek | |
parent | Merge branch 'bcmgenet-phydev-revert' (diff) | |
download | linux-6bf563d50af2de34024bde0de1733d4028f9400c.tar.xz linux-6bf563d50af2de34024bde0de1733d4028f9400c.zip |
net: ethernet: mediatek: add to stop PDMA while stopping the frame engine
Stop PDMA while the frame engine is going to stop.
Signed-off-by: Nelson Chang <nelson.chang@mediatek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mediatek')
-rw-r--r-- | drivers/net/ethernet/mediatek/mtk_eth_soc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c index 4cc50c03c12b..62de68dac036 100644 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c @@ -1784,6 +1784,7 @@ static int mtk_stop(struct net_device *dev) napi_disable(ð->rx_napi); mtk_stop_dma(eth, MTK_QDMA_GLO_CFG); + mtk_stop_dma(eth, MTK_PDMA_GLO_CFG); mtk_dma_free(eth); |