From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] net/eth: Don't issue warnings for offboard ethernet chips
Date: Sat, 17 Dec 2011 21:16:35 +0100 [thread overview]
Message-ID: <20111217201635.616801ECC61@gemini.denx.de> (raw)
In-Reply-To: <1324001821-15337-1-git-send-email-Kyle.D.Moffett@boeing.com>
Dear Kyle Moffett,
In message <1324001821-15337-1-git-send-email-Kyle.D.Moffett@boeing.com> you wrote:
> When using an offboard ethernet chip such as e1000, it is highly likely
> that the driver has already read a valid MAC address from the onboard
> EEPROM. In that case, U-Boot should not issue a warning about the
> absence of an "eth*addr" value in the environment.
Yes, it should. The rule is that then environment settings always
have precedence, and if they are missing or contain different data
than other sources for this inofmration, a waning shall be printed.
> A properly configured HWW-1U-1A board is fixed from this output:
>
> Net: e1000: 00:50:93:81:ff:8a
> e1000: 00:50:93:81:ff:8b
> owt0, owt1, peer, e1000#0
> Warning: failed to set MAC address
> , e1000#1
> Warning: failed to set MAC address
>
> To this:
>
> Net: e1000: 00:50:93:81:ff:8a
> e1000: 00:50:93:81:ff:8b
> owt0, owt1, peer, e1000#0, e1000#1
This is also not correct. There should never be any printing of the
MAC addresses here.
The messages should be:
Net: owt0, owt1, peer, e1000#0, e1000#1
> Furthermore, the log messages should avoid screwing up the "Net:" output
> formatting provided by the calling code, EG:
>
> Net: eth0, eth1 [could not set MAC: 00:50:93:81:ff:8a], eth2
No. "could not set" is an error message, and deserves a separate
line.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"What terrible way to die."
"There are no good ways."
-- Sulu and Kirk, "That Which Survives", stardate unknown
next prev parent reply other threads:[~2011-12-17 20:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-16 2:17 [U-Boot] [PATCH] net/eth: Don't issue warnings for offboard ethernet chips Kyle Moffett
2011-12-17 20:16 ` Wolfgang Denk [this message]
2011-12-19 16:41 ` Moffett, Kyle D
2011-12-19 17:55 ` Wolfgang Denk
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=20111217201635.616801ECC61@gemini.denx.de \
--to=wd@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