mirror of
https://github.com/torvalds/linux.git
synced 2026-07-30 11:11:26 +02:00
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>
This commit is contained in:
parent
3783c09eab
commit
6bf563d50a
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user