From: Nelson Chang Date: Mon, 26 Sep 2016 06:33:49 +0000 (+0800) Subject: net: ethernet: mediatek: add to stop PDMA while stopping the frame engine X-Git-Tag: v4.14-rc1~2374^2~49^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6bf563d50af2de34024bde0de1733d4028f9400c;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c index 4cc50c0..62de68d 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);