From patchwork Mon Apr 29 06:15:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?QmlhbyBIdWFuZyAo6buE5b2qKQ==?= X-Patchwork-Id: 10921253 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4D85692A for ; Mon, 29 Apr 2019 06:16:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 37F1A28703 for ; Mon, 29 Apr 2019 06:16:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 27CDC28706; Mon, 29 Apr 2019 06:16:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D53DD28703 for ; Mon, 29 Apr 2019 06:16:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=xuunoFnayX/nc60HANJes/KCm6TmFqC47DvmiuqlaFk=; b=PQNKsAFeOV2gt2 8fpaTo5ChUCi8BN2g8HVmi8OvJUS0Z2k4WMX6EcIIfx7sC3UQpSfnTxhd6DcsfS5dUQU0Ior2gLQ6 PfbGa7xUJLV3ufhYmwUUtAys4Zrtn7luFKRNhT6pAy99ehBe1Ors/6toNkUMCRcDcFE/HwCaj++Dm uA9yMNHlLMGi1NELopBYkiPLze4nG0SfC+Ql4kEpii2O8U7AsOAIALOe2jjvDywqBMFd0WSonREMb 82f3lac+LkeQaxIG85cJMgkwmcjzfWpU1CgAU+dy+OpHvRTep/YQDNo60Gda9xd6KT/F8Ns2u8Mns 2f2ucGsaC2i4Lysfx8DQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hKzaa-0005mZ-EE; Mon, 29 Apr 2019 06:16:32 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hKzaI-0005SR-6f; Mon, 29 Apr 2019 06:16:15 +0000 X-UUID: 01e31d1f837b4019b2348d2720484889-20190428 X-UUID: 01e31d1f837b4019b2348d2720484889-20190428 Received: from mtkcas68.mediatek.inc [(172.29.94.19)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 194288706; Sun, 28 Apr 2019 22:16:09 -0800 Received: from MTKMBS01N2.mediatek.inc (172.21.101.79) by MTKMBS62N2.mediatek.inc (172.29.193.42) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sun, 28 Apr 2019 23:16:07 -0700 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 29 Apr 2019 14:16:05 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Mon, 29 Apr 2019 14:16:04 +0800 From: Biao Huang To: Jose Abreu , Subject: [PATCH 0/4] fix some bugs in stmmac Date: Mon, 29 Apr 2019 14:15:52 +0800 Message-ID: <1556518556-32464-1-git-send-email-biao.huang@mediatek.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-TM-SNTS-SMTP: 29BA39CCF686AAB9215B307A05FAB453ECA786A1640899DC7C3C5E6100E51E9E2000:8 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190428_231614_243134_70CDFBF3 X-CRM114-Status: UNSURE ( 7.26 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: jianguo.zhang@mediatek.com, Alexandre Torgue , biao.huang@mediatek.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, yt.shen@mediatek.com, linux-mediatek@lists.infradead.org, Maxime Coquelin , Matthias Brugger , Giuseppe Cavallaro , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This series fix some bugs in stmmac driver. 3 patches are for common stmmac or dwmac4: 1. update rx tail pointer to fix rx dma hang issue. 2. change condition for mdc clock to fix csr_clk can't be zero issue. 3. write the modified value back to MTL_OPERATION_MODE. 1 patche is for dwmac-mediatek: 1. modify csr_clk value to fix mdio read/write fail issue for dwmac-mediatek. Biao Huang (4): net: stmmac: update rx tail pointer register to fix rx dma hang issue. net: stmmac: fix csr_clk can't be zero issue net: stmmac: write the modified value back to MTL_OPERATION_MODE net: stmmac: dwmac-mediatek: modify csr_clk value to fix mdio read/write fail .../net/ethernet/stmicro/stmmac/dwmac-mediatek.c | 4 ++-- drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c | 2 ++ drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 5 ++++- 3 files changed, 8 insertions(+), 3 deletions(-) -- 1.7.9.5