From patchwork Wed Jul 18 08:46:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janine Hagemann X-Patchwork-Id: 945608 X-Patchwork-Delegate: philipp.tomsich@theobroma-systems.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=phytec.de Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 41VrTg0J8tz9s0w for ; Wed, 18 Jul 2018 18:51:02 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id B0892C21E57; Wed, 18 Jul 2018 08:48:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id E4B2DC21E3A; Wed, 18 Jul 2018 08:46:59 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 9FC87C21BE5; Wed, 18 Jul 2018 08:46:56 +0000 (UTC) Received: from root.phytec.de (mail.microcatalog.org.uk [217.6.246.34]) by lists.denx.de (Postfix) with ESMTP id 5AF6CC21C38 for ; Wed, 18 Jul 2018 08:46:56 +0000 (UTC) Received: from idefix.phytec.de (idefix.phytec.de [172.16.0.10]) by root.phytec.de (Postfix) with ESMTP id 7E633A00742; Wed, 18 Jul 2018 10:47:16 +0200 (CEST) Received: from augenblix.phytec.de ([172.16.0.56]) by idefix.phytec.de (IBM Domino Release 9.0.1FP7) with ESMTP id 2018071810465467-647171 ; Wed, 18 Jul 2018 10:46:54 +0200 From: Janine Hagemann To: albert.u.boot@aribaud.net, sjg@chromium.org, philipp.tomsich@theobroma-systems.com, w.egorov@phytec.de, joe.hershberger@ni.com, u-boot@lists.denx.de Date: Wed, 18 Jul 2018 10:46:40 +0200 Message-Id: <1531903608-29695-4-git-send-email-j.hagemann@phytec.de> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1531903608-29695-1-git-send-email-j.hagemann@phytec.de> References: <1531903608-29695-1-git-send-email-j.hagemann@phytec.de> X-MIMETrack: Itemize by SMTP Server on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 18.07.2018 10:46:54, Serialize by Router on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 18.07.2018 10:46:54, Serialize complete at 18.07.2018 10:46:54 X-TNEFEvaluated: 1 Subject: [U-Boot] [PATCH v2 03/11] net: gmac_rockchip: Fix a register write in rk3328_gmac_set_to_rgmii X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" We have to use RK3328_RXCLK_DLY_ENA_GMAC_ENABLE instead of RK3328_RXCLK_DLY_ENA_GMAC_MASK in rk3328_gmac_set_to_rgmii() to enable the RX delay. The MASK was used in a wrong way. Signed-off-by: Janine Hagemann --- v2: No changes --- drivers/net/gmac_rockchip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/gmac_rockchip.c b/drivers/net/gmac_rockchip.c index 30a24d1..0f91731 100644 --- a/drivers/net/gmac_rockchip.c +++ b/drivers/net/gmac_rockchip.c @@ -350,7 +350,7 @@ static void rk3328_gmac_set_to_rgmii(struct gmac_rockchip_platdata *pdata) RK3328_RXCLK_DLY_ENA_GMAC_MASK | RK3328_TXCLK_DLY_ENA_GMAC_MASK, RK3328_GMAC_PHY_INTF_SEL_RGMII | - RK3328_RXCLK_DLY_ENA_GMAC_MASK | + RK3328_RXCLK_DLY_ENA_GMAC_ENABLE | RK3328_TXCLK_DLY_ENA_GMAC_ENABLE); rk_clrsetreg(&grf->mac_con[0],