From patchwork Fri Jan 13 12:10:01 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dirk Behme X-Patchwork-Id: 135811 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 1BFFAB6F6F for ; Fri, 13 Jan 2012 23:10:33 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5A9C128830; Fri, 13 Jan 2012 13:10:31 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1BzK59fG71aQ; Fri, 13 Jan 2012 13:10:31 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D40A128805; Fri, 13 Jan 2012 13:10:25 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B02F8287DE for ; Fri, 13 Jan 2012 13:10:19 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rM0h8im9qiNR for ; Fri, 13 Jan 2012 13:10:19 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from smtp2-v.fe.bosch.de (smtp2-v.fe.bosch.de [139.15.237.6]) by theia.denx.de (Postfix) with ESMTPS id 56342287D5 for ; Fri, 13 Jan 2012 13:10:19 +0100 (CET) Received: from vsmta13.fe.internet.bosch.com (unknown [10.4.98.30]) by imta24.fe.bosch.de (Postfix) with ESMTP id 1CEACB3B87E6 for ; Fri, 13 Jan 2012 13:09:57 +0100 (CET) Received: from localhost (vsgw4.fe.internet.bosch.com [10.4.98.12]) by vsmta13.fe.internet.bosch.com (Postfix) with SMTP id C08775CA0047 for ; Fri, 13 Jan 2012 13:10:18 +0100 (CET) Received: from SI-HUB1001.de.bosch.com (10.4.103.108) by fe-hub03.de.bosch.com (10.3.153.62) with Microsoft SMTP Server (TLS) id 8.3.213.0; Fri, 13 Jan 2012 13:10:09 +0100 Received: from hi-z5661.hi.de.bosch.com (10.34.217.179) by SI-HUB1001.de.bosch.com (10.4.103.108) with Microsoft SMTP Server id 14.1.355.2; Fri, 13 Jan 2012 13:10:08 +0100 Received: from localhost.localdomain (localhost [127.0.0.1]) by hi-z5661.hi.de.bosch.com (Postfix) with ESMTP id DF338404B2; Fri, 13 Jan 2012 13:10:08 +0100 (CET) From: Dirk Behme To: Date: Fri, 13 Jan 2012 13:10:01 +0100 Message-ID: <1326456604-25137-2-git-send-email-dirk.behme@de.bosch.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1326456604-25137-1-git-send-email-dirk.behme@de.bosch.com> References: <1326456604-25137-1-git-send-email-dirk.behme@de.bosch.com> MIME-Version: 1.0 Cc: Troy Kisky Subject: [U-Boot] [PATCH 2/5] net: fec_mxc: Increase autonegotiation timeout X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de From: Troy Kisky Timeouts were happening to soon for some switches. Signed-off-by: Troy Kisky CC: Troy Kisky CC: Stefano Babic CC: Marek Vasut --- drivers/net/fec_mxc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index 9e8ef7a..b50e01c 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -226,7 +226,7 @@ static int miiphy_wait_aneg(struct eth_device *dev) */ start = get_timer(0); do { - if (get_timer(start) > (CONFIG_SYS_HZ * 5)) { + if (get_timer(start) > (CONFIG_SYS_HZ * 10)) { printf("%s: Autonegotiation timeout\n", dev->name); return -1; }