From patchwork Mon Jan 4 23:26:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 562821 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 F34AA1402C0 for ; Tue, 5 Jan 2016 10:26:33 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=WQnGjvzv; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 632A54B794; Tue, 5 Jan 2016 00:26:30 +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 k7a6eXAN3Ovf; Tue, 5 Jan 2016 00:26:30 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BD4B44B70A; Tue, 5 Jan 2016 00:26:29 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 873CC4B70A for ; Tue, 5 Jan 2016 00:26:26 +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 Zkt_E4m_z83q for ; Tue, 5 Jan 2016 00:26:26 +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 mail-ig0-f180.google.com (mail-ig0-f180.google.com [209.85.213.180]) by theia.denx.de (Postfix) with ESMTPS id 24BFA4B6CB for ; Tue, 5 Jan 2016 00:26:21 +0100 (CET) Received: by mail-ig0-f180.google.com with SMTP id ik10so2351254igb.1 for ; Mon, 04 Jan 2016 15:26:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=fWPr/MNAYFjwfATIXdjNa1Y9JRSUFXfuxvY7yodeDJM=; b=WQnGjvzvqBjtFspAUVwa2enwE+SwZzVFUAz0cFSrrcMIt8W0eewSfNemSnGjlCDF6/ 0GBVGnSt660NSFq0+hlziucOOtsyR5a1DKacdoBLNiDWVJEouLM76+ANHliIYMB4zYpi lYvPoh97BM4S76KQWuData8Gb7lI6oN6NjVl+cxIi1bdYiBDCYAzkd0E7+2eKCPJzGmQ SFQVjYCxhcrTKAcWN0U6HYHbYlMc1GS1kQotzKmTFIKrBl5fMI6/Tozy/YmCa6RzRmsL HwQqPrN8F3IvhjoK9dUHVt+Pwid0Fbazgd2h8n9CvDBR6uPmc7cLoo+kA+hQ4Nn+WGrj faCA== MIME-Version: 1.0 X-Received: by 10.50.142.40 with SMTP id rt8mr933948igb.28.1451949980533; Mon, 04 Jan 2016 15:26:20 -0800 (PST) Received: by 10.79.67.2 with HTTP; Mon, 4 Jan 2016 15:26:20 -0800 (PST) In-Reply-To: <568AFC0F.6030901@boundarydevices.com> References: <1451925378-14121-1-git-send-email-festevam@gmail.com> <1451925378-14121-2-git-send-email-festevam@gmail.com> <568AD8C2.4070602@boundarydevices.com> <568AECE3.1020004@boundarydevices.com> <568AF5F0.3050800@boundarydevices.com> <568AFC0F.6030901@boundarydevices.com> Date: Mon, 4 Jan 2016 21:26:20 -0200 Message-ID: From: Fabio Estevam To: Troy Kisky Cc: Fabio Estevam , U-Boot-Denx , Jon Nettleton Subject: Re: [U-Boot] [PATCH 2/2] mx6cuboxi: Make Ethernet functional X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" On Mon, Jan 4, 2016 at 9:11 PM, Troy Kisky wrote: > Try adding a delay after releasing reset > > mdelay(2); > gpio_set_value(ETH_PHY_RESET, 1); > udelay(100); > > Perhaps the first time it didn't read 4dd072 That works :-) Here is a minimal fix: Thanks for your help, Troy! --- a/board/solidrun/mx6cuboxi/mx6cuboxi.c +++ b/board/solidrun/mx6cuboxi/mx6cuboxi.c @@ -143,8 +143,9 @@ static void setup_iomux_enet(void) SETUP_IOMUX_PADS(enet_pads); gpio_direction_output(ETH_PHY_RESET, 0); - mdelay(2); + mdelay(10); gpio_set_value(ETH_PHY_RESET, 1); + udelay(100); } Will send a formal patch shortly.