From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V3 07/11] fec_mxc: add support for MX51 processor
Date: Mon, 01 Feb 2010 12:43:44 +0100 [thread overview]
Message-ID: <4B66BE70.6010703@denx.de> (raw)
In-Reply-To: <4B666B4B.9090503@gmail.com>
Ben Warren wrote:
> Hi Stefano,
Hi Ben,
> Your driver shouldn't touch the environment (i.e. no getenv/setenv
> calls). Just save the value from ROM into edev->enetaddr, like this:
> if (fec_get_hwaddr(edev, ethaddr) == 0)
> memcpy(edev->enetaddr, ethaddr, 6);
>
> The core net code will take care of overwriting this if there's a value
> in the environment. Please see README.enetaddr if this isn't clear.
I see. This means there is another problem in this driver. The mac
address is set only once in the probe(), but as you describes, it must
be done in the init() entry point, else it cannot be overwritten by the
value of ethaddr. I will move the setting of the mac address in my next
submit, too.
Best regards,
Stefano
--
=====================================================================
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
=====================================================================
next prev parent reply other threads:[~2010-02-01 11:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-20 17:20 [U-Boot] [PATCH V3 07/11] fec_mxc: add support for MX51 processor Stefano Babic
2010-02-01 5:48 ` Ben Warren
2010-02-01 11:43 ` Stefano Babic [this message]
2010-02-01 13:51 ` [U-Boot] [PATCH V4 " Stefano Babic
2010-02-07 7:05 ` Ben Warren
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=4B66BE70.6010703@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