public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Ben Warren <biggerbadderben@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Defer net initialization
Date: Tue, 01 Jun 2010 12:04:54 -0700	[thread overview]
Message-ID: <4C0559D6.7000902@gmail.com> (raw)
In-Reply-To: <201006011655.14024.alexander.stein@systec-electronic.com>

Hi Alexander,

On 6/1/2010 7:55 AM, Alexander Stein wrote:
> Ho Ben,
>
> Am Dienstag, 1. Juni 2010 16:46:48 schrieb Ben Warren:
>    
>>> This macb driver is fine so far. eth_initialize doesn't startup the
>>> hardware
>>> e.g. checking for link etc.
>>> The problem was a defined CONFIG_RESET_PHY_R. Inside reset_phy
>>>
>>>        
>>>> eth_init(gd->bd);
>>>>          
>>> is called which actually starts the hardwre resulting in timeouts as
>>> described. According to the comment above this line (seems to be copied
>>> to every at91 board implementation) this is only needed if linux has a
>>> NFS root
>>> which needs a preinitialized ethernet device.
>>> But as we have a jffs2 rootfs this could be ignored.
>>>        
>> Yes, you've found the root cause.  Some (maybe all) AT91 boards call call
>> eth_init() during their initialization, which can take time.  My
>> understanding is that this was done to ensure a programmed MAC address.
>>
>> I added code recently to always program MAC addresses, hoping that we could
>> then get rid of all these calls.  I encourage you to either try to make the
>> changes yourself, or I can build you an untested patch to try.
>>      
> I would try your patch if you send it to me (and the list maybe too).
>
>    
I sent the patch, hopefully you'll get it.  Please remember to remove 
the call in your board code to 'eth_init()'.  You'll see examples in the 
patch.
> Best regards
> Alexander
>    
regards,
Ben

      reply	other threads:[~2010-06-01 19:04 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-31 12:58 [U-Boot] Defer net initialization Alexander Stein
2010-05-31 16:08 ` Wolfgang Denk
2010-06-01  6:17   ` Alexander Stein
2010-06-01  6:24     ` Alexander Stein
2010-06-01  7:17       ` Wolfgang Denk
     [not found]         ` <201006011035.38778.alexander.stein@systec-electronic.com>
2010-06-01  8:48           ` Wolfgang Denk
2010-06-01 10:14             ` Alexander Stein
2010-06-01 10:46               ` Wolfgang Denk
2010-06-01 11:12                 ` Alexander Stein
2010-06-01 14:46               ` Ben Warren
2010-06-01 14:55                 ` Alexander Stein
2010-06-01 19:04                   ` Ben Warren [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C0559D6.7000902@gmail.com \
    --to=biggerbadderben@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox