Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1784,6 +1784,7 @@ static int mtk_stop(struct net_device *dev)
	napi_disable(&eth->rx_napi);

	mtk_stop_dma(eth, MTK_QDMA_GLO_CFG);
	mtk_stop_dma(eth, MTK_PDMA_GLO_CFG);

	mtk_dma_free(eth);