From patchwork Wed Dec 10 20:40:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Davey Hutchison X-Patchwork-Id: 419857 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 1BA6F1400E7 for ; Thu, 11 Dec 2014 07:41:10 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 689BC28C129; Wed, 10 Dec 2014 21:39:15 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 29793284DFA for ; Wed, 10 Dec 2014 21:39:09 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .bluemesh. - helo: .mail-pa0-f52.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -8.5 Received: from mail-pa0-f52.google.com (mail-pa0-f52.google.com [209.85.220.52]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Wed, 10 Dec 2014 21:39:07 +0100 (CET) Received: by mail-pa0-f52.google.com with SMTP id eu11so3521251pac.11 for ; Wed, 10 Dec 2014 12:40:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-type:content-transfer-encoding :subject:date:message-id:cc:to:mime-version; bh=PVE1l12zMcE/OTwa6L3WYK5cLfEwp9tcAcC+zSQvzKc=; b=nFUgIpHvg8fpOTvw+irpO0eWn1qc/ZR67Ytbcd18PMm5uoWWDHv4TpqDIfKFxqv3IA kfkO0xctepgIap2bdYVMlxshzQ7hGs6NxgvZ/9BcMrYgN6nRuHdryQ7MbOE91zkquil6 HuUpEgJyVnqz12bDjk5Q9GASS/lnc3b36Bc4Ed1Nphwyjgo8SqqcU/jpJIlneN9fz+b6 +33PSOdJicpdwWKgtREY9BE4Xe0tpRfy9cMYtmPo8El6pWS4tt8arPVA9XhAk43oHCso mgU30LWddjsiYEl5sy9n5/8U/o+6aA6ioXlGiJjJv3Q4SiXw8zu3Fj4HUOgPuidX2SXC wN3g== X-Gm-Message-State: ALoCoQnCzQKaE9Ns+qz7TqcYGeI+oiQjzliZiPpo2qrjBvgwsWNCisVG4H9JgF85JC37U5ygvGbB X-Received: by 10.70.130.108 with SMTP id od12mr10336673pdb.109.1418244051175; Wed, 10 Dec 2014 12:40:51 -0800 (PST) Received: from [10.128.41.117] ([64.128.89.82]) by mx.google.com with ESMTPSA id dj1sm4982994pbb.48.2014.12.10.12.40.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 10 Dec 2014 12:40:50 -0800 (PST) From: Davey Hutchison Date: Wed, 10 Dec 2014 13:40:42 -0700 Message-Id: <78C491B4-86F1-4CDF-988D-8DDA41888435@bluemesh.net> To: juhosg@openwrt.org Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) X-Mailer: Apple Mail (2.1510) Cc: openwrt-devel@lists.openwrt.org Subject: [OpenWrt-Devel] [PATCH][ar71xx] Routerboard 951G Switch Fix X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Fix pll_1000 value for eth0. Traffic would not flow from the eth0 interface. The new PLL enables delay, use ath79_setup_ar934x_eth_cfg to also enable AR934X_ETH_CFG_RXD_DELAY. Signed-off-by: Davey Hutchison openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel --- target/linux/ar71xx/files/arch/mips/ath79/mach-rb95x.c +++ target/linux/ar71xx/files/arch/mips/ath79/mach-rb95x.c @@ -199,6 +199,7 @@ return; ath79_setup_ar934x_eth_cfg(AR934X_ETH_CFG_RGMII_GMAC0 | + AR934X_ETH_CFG_RXD_DELAY | AR934X_ETH_CFG_SW_ONLY_MODE); ath79_register_mdio(0, 0x0); @@ -209,6 +210,7 @@ ath79_init_mac(ath79_eth0_data.mac_addr, ath79_mac_base, 0); ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII; ath79_eth0_data.phy_mask = BIT(0); + ath79_eth0_pll_data.pll_1000 = 0x3e000000; ath79_register_eth(0); _______________________________________________