From: Wolfgang Denk <wd@denx.de>
To: Tom Rini <trini@konsulko.com>
Cc: Ramon Fried <rfried.dev@gmail.com>, Marek Vasut <marex@denx.de>,
Michael Walle <michael@walle.cc>,
U-Boot Mailing List <u-boot@lists.denx.de>,
Grygorii Strashko <grygorii.strashko@ti.com>,
Michal Simek <michal.simek@xilinx.com>,
fried.dev@gmail.com, Joe Hershberger <joe.hershberger@ni.com>,
Simon Glass <sjg@chromium.org>
Subject: Re: [PATCH RFC] cmd: fix net list command
Date: Tue, 16 Nov 2021 15:51:39 +0100 [thread overview]
Message-ID: <1738949.1637074299@gemini.denx.de> (raw)
In-Reply-To: <20211116141030.GC24579@bill-the-cat>
Dear Tom,
In message <20211116141030.GC24579@bill-the-cat> you wrote:
>
> One thing I'm not totally sure on yet is, looking at the README I see:
> "If Ethernet drivers implement the 'write_hwaddr' function, valid MAC
> addresses will be programmed into hardware as part of the initialization
> process. This may be skipped by setting the appropriate 'ethmacskip'
> environment variable. The naming convention is as follows: "ethmacskip"
> (=>eth0), "eth1macskip" (=>eth1) etc."
I have to admit that until now I was not even aware of these
variables...
> As I'm sure that predates device trees being used to the extent they are
> now, should 'ethmacskip' be involved in the "fixup the device tree"
> logic, and appropriate rST / Kconfig help text updated? My first
> reaction is that in spirit, this is how to solve Michael's use case and
> README / doc/README.enetaddr do not specify when/why the "also fixup the
> device tree if it exists" is done.
Apparently this logic was added more than 10 years ago in commit
ecee9324d "Program net device MAC addresses after initializing".
I think it does not change anything to the logic that Linux uses the
MAC address passed by U-Boot. Whether U-Boot also writes some MAC
address to the device's persistent storage is an independent act.
If there already was an addressed stored there befoire it would not
have been read by Linux, so the same should happen here.
[Here it is even less problematic as U-Boot has the very same MAC
address in it's environment.]
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
Everyting looks interesting until you do it. Then you find it's just
another job. - Terry Pratchett, _Moving Pictures_
next prev parent reply other threads:[~2021-11-16 14:51 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-15 12:11 [PATCH RFC] cmd: fix net list command Michael Walle
2021-11-15 12:15 ` Marek Vasut
2021-11-15 12:24 ` Michael Walle
2021-11-15 13:17 ` Marek Vasut
2021-11-15 13:46 ` Michael Walle
2021-11-15 14:31 ` Wolfgang Denk
2021-11-15 14:52 ` Michael Walle
2021-11-15 14:57 ` Michal Simek
2021-11-15 15:07 ` Tom Rini
2021-11-15 15:22 ` Wolfgang Denk
2021-11-15 15:38 ` Tom Rini
2021-11-15 15:20 ` Wolfgang Denk
2021-11-15 16:12 ` Michal Simek
2021-11-16 13:29 ` Wolfgang Denk
2021-11-15 15:12 ` Tom Rini
2021-11-15 15:15 ` Michael Walle
2021-11-15 15:19 ` Tom Rini
2021-11-15 15:25 ` Wolfgang Denk
2021-11-15 15:45 ` Tom Rini
2021-11-16 13:23 ` Wolfgang Denk
2021-11-15 15:15 ` Wolfgang Denk
2021-11-15 15:21 ` Michael Walle
2021-11-15 16:45 ` Marek Vasut
2021-11-16 6:14 ` Ramon Fried
2021-11-16 13:33 ` Wolfgang Denk
2021-11-16 14:10 ` Tom Rini
2021-11-16 14:51 ` Wolfgang Denk [this message]
2021-11-15 13:57 ` Tom Rini
2021-11-15 14:53 ` Michael Walle
2021-11-15 14:53 ` Michal Simek
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=1738949.1637074299@gemini.denx.de \
--to=wd@denx.de \
--cc=fried.dev@gmail.com \
--cc=grygorii.strashko@ti.com \
--cc=joe.hershberger@ni.com \
--cc=marex@denx.de \
--cc=michael@walle.cc \
--cc=michal.simek@xilinx.com \
--cc=rfried.dev@gmail.com \
--cc=sjg@chromium.org \
--cc=trini@konsulko.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