From patchwork Wed Apr 15 15:25:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 461570 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 3F83F1401DE for ; Thu, 16 Apr 2015 01:27:52 +1000 (AEST) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 4523828BCED; Wed, 15 Apr 2015 17:25:04 +0200 (CEST) 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, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id C271B2846CC for ; Wed, 15 Apr 2015 17:24:48 +0200 (CEST) X-policyd-weight: using cached result; rate:hard: -7.6 Received: from v3-1039.vlinux.de (narfation.org [79.140.41.39]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Wed, 15 Apr 2015 17:24:44 +0200 (CEST) Received: from sven-desktop.home.narfation.org (x4d06445e.dyn.telefonica.de [77.6.68.94]) by v3-1039.vlinux.de (Postfix) with ESMTPSA id 64D1A1101ED; Wed, 15 Apr 2015 17:25:35 +0200 (CEST) From: Sven Eckelmann To: openwrt-devel@lists.openwrt.org Date: Wed, 15 Apr 2015 17:25:22 +0200 Message-Id: <1429111522-12141-4-git-send-email-sven@open-mesh.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1429111522-12141-1-git-send-email-sven@open-mesh.com> References: <1429111522-12141-1-git-send-email-sven@open-mesh.com> Cc: Sven Eckelmann Subject: [OpenWrt-Devel] [PATCH 4/4] ar71xx: Increase RXD/RDV to 2 on OM5P-AN 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: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" It was reported that OM5P-AN needs not only a delay setting of 1 for RXD/RDV but 2. These was found when testing with a NetGear GS752TP POE switch with a cable length of 50ft and 250ft. Signed-off-by: Sven Eckelmann --- target/linux/ar71xx/files/arch/mips/ath79/mach-om5p.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-om5p.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-om5p.c index 298e80c..49acd3b 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-om5p.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-om5p.c @@ -186,9 +186,8 @@ static void __init om5p_an_setup(void) ath79_init_mac(mac, art, 0x02); ath79_register_wmac(art + OM5P_WMAC_CALDATA_OFFSET, mac); - ath79_setup_ar934x_eth_cfg(AR934X_ETH_CFG_RGMII_GMAC0 | - AR934X_ETH_CFG_RXD_DELAY | - AR934X_ETH_CFG_RDV_DELAY); + ath79_setup_ar934x_eth_cfg(AR934X_ETH_CFG_RGMII_GMAC0); + ath79_setup_ar934x_eth_rx_delay(2, 2); ath79_register_mdio(0, 0x0); ath79_register_mdio(1, 0x0);