public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/2] imx: Get fec mac address from fuse
Date: Wed, 27 Oct 2010 09:21:10 +0200	[thread overview]
Message-ID: <4CC7D2E6.9050602@denx.de> (raw)
In-Reply-To: <AANLkTim2AV17QDFaCCEBR0u5gM8X08e7uyi_UULOX5UG@mail.gmail.com>

On 10/26/2010 12:35 PM, Jason Liu wrote:
>>>  static int fec_set_hwaddr(struct eth_device *dev)
>>> @@ -414,9 +410,6 @@ static int fec_init(struct eth_device *dev, bd_t* bd)
>>>       uint32_t base;
>>>       struct fec_priv *fec = (struct fec_priv *)dev->priv;
>>>
>>> -     /* Initialize MAC address */
>>> -     fec_set_hwaddr(dev);
>>> -
>>
>> Not sure. Why is this call removed ? We have changed the storage for the
>> MAC address, but we need always to set the FEC controller. What is the
>> reason to drop it ?
> 
> It's because, it will print some floating  value  of MAC address when
> bootup and in fact, we don't need re-set it again here..
> The net framework will do that. This is why I remove. it.

The call was added one month ago. It sets the MAC address any time the
network is used, to be sure that the correct MAC is taken even if the
ethaddr variable is changed. You can take a look at the patch:

http://www.mail-archive.com/u-boot at lists.denx.de/msg37629.html

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

  reply	other threads:[~2010-10-27  7:21 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-22 11:25 [U-Boot] [PATCH 1/2] imx: Get fec mac address from fuse Jason Liu
2010-10-22 11:25 ` [U-Boot] [PATCH 2/2] MX5: board version not printed corretly on MX51EVK Jason Liu
2010-10-26  7:53   ` Stefano Babic
2010-10-26 10:29     ` Jason Liu
2010-10-27  7:22       ` Stefano Babic
2010-10-26  7:45 ` [U-Boot] [PATCH 1/2] imx: Get fec mac address from fuse Stefano Babic
2010-10-26 10:35   ` Jason Liu
2010-10-27  7:21     ` Stefano Babic [this message]
2010-10-27  7:40       ` Jason Liu
2010-10-27  8:49         ` Stefano Babic
2010-10-27  9:21           ` Jason Liu
2010-10-27 17:50             ` John Rigby
2010-10-27 18:06               ` Wolfgang Denk
2010-10-27 18:59                 ` John Rigby
  -- strict thread matches above, loose matches on Subject: below --
2010-10-25 13:07 Shawn Guo

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=4CC7D2E6.9050602@denx.de \
    --to=sbabic@denx.de \
    --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