netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Nelson Chang <nelson.chang@mediatek.com>
To: <john@phrozen.org>, <davem@davemloft.net>
Cc: <nbd@openwrt.org>, <netdev@vger.kernel.org>,
	<linux-mediatek@lists.infradead.org>, <nelsonch.tw@gmail.com>,
	Nelson Chang <nelson.chang@mediatek.com>
Subject: [PATCH net-next 1/2] net: ethernet: mediatek: add to stop PDMA while stopping the frame engine
Date: Mon, 26 Sep 2016 14:33:49 +0800	[thread overview]
Message-ID: <1474871630-4134-2-git-send-email-nelson.chang@mediatek.com> (raw)
In-Reply-To: <1474871630-4134-1-git-send-email-nelson.chang@mediatek.com>

Stop PDMA while the frame engine is going to stop.

Signed-off-by: Nelson Chang <nelson.chang@mediatek.com>
---
 drivers/net/ethernet/mediatek/mtk_eth_soc.c | 1 +
 1 file changed, 1 insertion(+)

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(&eth->rx_napi);
 
 	mtk_stop_dma(eth, MTK_QDMA_GLO_CFG);
+	mtk_stop_dma(eth, MTK_PDMA_GLO_CFG);
 
 	mtk_dma_free(eth);
 
-- 
1.9.1

  reply	other threads:[~2016-09-26  6:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-26  6:33 [PATCH net-next 0/2] net: ethernet: mediatek: some bug fixes for PDAM and HW LRO Nelson Chang
2016-09-26  6:33 ` Nelson Chang [this message]
     [not found] ` <1474871630-4134-1-git-send-email-nelson.chang-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
2016-09-26  6:33   ` [PATCH net-next 2/2] net: ethernet: mediatek: bug fix to disable " Nelson Chang
2016-09-26 11:21     ` Sergei Shtylyov
2016-09-27 13:42 ` [PATCH net-next 0/2] net: ethernet: mediatek: some bug fixes for PDAM and " David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1474871630-4134-2-git-send-email-nelson.chang@mediatek.com \
    --to=nelson.chang@mediatek.com \
    --cc=davem@davemloft.net \
    --cc=john@phrozen.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=nbd@openwrt.org \
    --cc=nelsonch.tw@gmail.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).