Commit 6bf563d5 authored by Nelson Chang's avatar Nelson Chang Committed by David S. Miller

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: default avatarNelson Chang <nelson.chang@mediatek.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3783c09e
...@@ -1784,6 +1784,7 @@ static int mtk_stop(struct net_device *dev) ...@@ -1784,6 +1784,7 @@ static int mtk_stop(struct net_device *dev)
napi_disable(&eth->rx_napi); napi_disable(&eth->rx_napi);
mtk_stop_dma(eth, MTK_QDMA_GLO_CFG); mtk_stop_dma(eth, MTK_QDMA_GLO_CFG);
mtk_stop_dma(eth, MTK_PDMA_GLO_CFG);
mtk_dma_free(eth); mtk_dma_free(eth);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment