From patchwork Wed Nov 5 12:08:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francois Retief X-Patchwork-Id: 406967 X-Patchwork-Delegate: daniel@gaisler.com 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 A8B4914008C for ; Wed, 5 Nov 2014 23:11:40 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 352C14BDD3; Wed, 5 Nov 2014 13:11:16 +0100 (CET) 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 iFxBDYkhIfqd; Wed, 5 Nov 2014 13:11:15 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2F6A14BE04; Wed, 5 Nov 2014 13:10:59 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C56334BDD3 for ; Wed, 5 Nov 2014 13:10:47 +0100 (CET) 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 i36fS5NLP31L for ; Wed, 5 Nov 2014 13:10:47 +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 SPASTBMXS01.sunspace.co.za (unknown [196.44.39.35]) by theia.denx.de (Postfix) with ESMTPS id 419FE4BDCB for ; Wed, 5 Nov 2014 13:10:47 +0100 (CET) Received: from SPASTBMXS01.sunspace.co.za (10.24.0.111) by SPASTBMXS01.sunspace.co.za (10.24.0.111) with Microsoft SMTP Server (TLS) id 15.0.847.32; Wed, 5 Nov 2014 14:10:07 +0200 Received: from serengeti.sunspace.co.za (10.24.5.54) by SPASTBMXS01.sunspace.co.za (10.24.0.111) with Microsoft SMTP Server id 15.0.847.32 via Frontend Transport; Wed, 5 Nov 2014 14:10:07 +0200 From: Francois Retief To: Date: Wed, 5 Nov 2014 14:08:18 +0200 Message-ID: <1415189303-6042-6-git-send-email-fgretief@spaceteq.co.za> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1415189303-6042-1-git-send-email-fgretief@spaceteq.co.za> References: <1415189303-6042-1-git-send-email-fgretief@spaceteq.co.za> MIME-Version: 1.0 Received-SPF: None (SPASTBMXS01.sunspace.co.za: fgretief@spaceteq.co.za does not designate permitted sender hosts) Subject: [U-Boot] [PATCH v2 05/10] sparc: Use microseconds instead of ticks for timeout X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.13 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 We now use the generic delay method which specifies the timeout as microseconds instead of ticks. Signed-off-by: Francois Retief --- Changes in v2: None drivers/net/greth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.3 diff --git a/drivers/net/greth.c b/drivers/net/greth.c index c817af4..7784684 100644 --- a/drivers/net/greth.c +++ b/drivers/net/greth.c @@ -237,7 +237,7 @@ int greth_init_phy(greth_priv * dev, bd_t * bis) debug("GRETH PHY ADDRESS: %d\n", phyaddr); /* X msecs to ticks */ - timeout = usec2ticks(GRETH_PHY_TIMEOUT_MS * 1000); + timeout = GRETH_PHY_TIMEOUT_MS * 1000; /* Get system timer0 current value * Total timeout is 5s