projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3783c09
)
net: ethernet: mediatek: add to stop PDMA while stopping the frame engine
author
Nelson Chang
<
[email protected]
>
Mon, 26 Sep 2016 06:33:49 +0000
(14:33 +0800)
committer
David S. Miller
<
[email protected]
>
Tue, 27 Sep 2016 13:41:31 +0000
(09:41 -0400)
Stop PDMA while the frame engine is going to stop.
Signed-off-by: Nelson Chang <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/mediatek/mtk_eth_soc.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
index 4cc50c03c12b2786f05cfc5bc166bdf726b88afe..62de68dac03639216d3c3d81b94917689b76f858 100644
(file)
--- 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);