public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] Add mechanisms for CPU and	board-specific Ethernet initialization
Date: Wed, 11 Jun 2008 00:16:41 +0900	[thread overview]
Message-ID: <484E9AD9.2060802@ruby.dti.ne.jp> (raw)
In-Reply-To: <f8328f7c0806100653v1a4d632dv397d0d06696198f4@mail.gmail.com>

Ben Warren wrote:
>>> @@ -165,6 +171,10 @@ int eth_initialize(bd_t *bis)
>>>  #if defined(CONFIG_MII) || defined(CONFIG_CMD_MII)
>>>       miiphy_init();
>>>  #endif
>>> +     /* Try CPU-specific initialization first.  If it fails or isn't
>>> +      * present, call the board-specific initialization */
>>> +     if (cpu_eth_init(bis) < 0 )
>> Nitpicking: No space before ")" please.
> Huh, don't know how I missed that one.
>>> +             board_eth_init(bis);
>> Shouldn't this be the other way around?
>>
>> +       if (board_eth_init(bis) < 0)
>> +               eth_eth_init(bis);
>>
>> So that the board init routine can "overwrite" the cpu init version.
>>
> Yeah, I think you're right.  If board_eth_init() exists, it gets
> highest priority.

Just wondered, does that mean we could only have either cpu_eth_init or
board_eth_init at a time?

  reply	other threads:[~2008-06-10 15:16 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-10  8:29 [U-Boot-Users] [PATCH] Add mechanisms for CPU and board-specific Ethernet initialization Ben Warren
2008-06-10  9:12 ` Stefan Roese
2008-06-10 13:53   ` Ben Warren
2008-06-10 15:16     ` Shinya Kuribayashi [this message]
2008-06-10 15:25       ` Stefan Roese
2008-06-10 15:49         ` Shinya Kuribayashi
2008-06-10 16:16           ` Ben Warren
2008-06-24 22:32             ` Jean-Christophe PLAGNIOL-VILLARD
2008-06-24 23:05               ` Ben Warren
2008-06-25  9:30               ` Haavard Skinnemoen
2008-06-25  9:34                 ` Stefan Roese
2008-06-11  0:50 ` Haavard Skinnemoen
2008-06-11 11:30   ` Jerry Van Baren

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=484E9AD9.2060802@ruby.dti.ne.jp \
    --to=skuribay@ruby.dti.ne.jp \
    --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