From: "Benoît Thébaudeau" <benoit.thebaudeau@advansee.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [QUESTION] "ethaddr" env. var. vs. dev->enetaddr
Date: Mon, 6 Aug 2012 21:02:26 +0200 (CEST) [thread overview]
Message-ID: <5305998.2030837.1344279746848.JavaMail.root@advansee.com> (raw)
In-Reply-To: <261180882.2030378.1344278963347.JavaMail.root@advansee.com>
Hi all,
There's a lot of stuff in U-Boot relying on ethaddr being set, e.g. the bdinfo
command, or the linklocal command because of seed_mac. If ethaddr is not set,
bdinfo will report exactly that, but linklocal will wait indefinitely without
displaying anything.
The issue is that dev->enetaddr may be set even if ethaddr is not, e.g. through
imx_get_mac_from_fuse. eth_write_hwaddr uses a valid ethaddr to override an
already set dev->enetaddr, but it does not require ethaddr to be set.
Hence, shouldn't the users of ethaddr rather use dev->enetaddr, or is ethaddr
really supposed to be required (bug or feature)?
If ethaddr is required, should it be up to the boards to set if for cases like
imx_get_mac_from_fuse, or should eth_write_hwaddr set it automatically if
dev->enetaddr is valid but ethaddr is unset or invalid?
Best regards,
Beno?t
next parent reply other threads:[~2012-08-06 19:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <261180882.2030378.1344278963347.JavaMail.root@advansee.com>
2012-08-06 19:02 ` Benoît Thébaudeau [this message]
2012-08-06 22:45 ` [U-Boot] [QUESTION] "ethaddr" env. var. vs. dev->enetaddr Joe Hershberger
2012-08-06 23:40 ` Mike Frysinger
2012-08-07 0:49 ` Fabio Estevam
2012-08-07 2:39 ` Rob Herring
2012-08-07 0:48 ` Benoît Thébaudeau
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=5305998.2030837.1344279746848.JavaMail.root@advansee.com \
--to=benoit.thebaudeau@advansee.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