From: Ben Warren <biggerbadderben@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/2 v2] net, fec_mxc: only setup the device enetaddr with eeprom value, if ethaddr is not setup
Date: Wed, 31 Mar 2010 13:04:28 -0700 [thread overview]
Message-ID: <4BB3AACC.9070203@gmail.com> (raw)
In-Reply-To: <201003311559.20475.vapier@gentoo.org>
Hi Mike,
On 3/31/2010 12:59 PM, Mike Frysinger wrote:
> On Wednesday 31 March 2010 10:46:25 Detlev Zundel wrote:
>
>> I fully agree. Previously I was under the impression that we already
>> have a "fast initialization" (probe) and a "full initialization" (init)
>> of the network interfaces, where programming the mac would (on a first
>> stab) fit into the probe part (and some drivers obviously do/did this).
>>
>> In the meantime it seems like it is a broader problem of keeping
>> "ethaddr" and friends in sync with the real hardware. Although this is
>> something I personally always took for granted, it currently is most of
>> the time but not always correct.
>>
>> If we solve the latter problem in a nice way, the initial problem will
>> simply disappear (or so I hope) ;)
>>
> the latter problem is already solved in the general case. the first
> initialize path gets the hw mac address and gives it to the common layers.
> common layers take care of keeping the structures in sync. when the slow init
> path gets called to actually bring up the hardware, the mac has already been
> synced to the structures. correctly written devices never have to care about
> anything other than dev->enetaddr and should not be programming the MAC with
> the MAC address in the fast initialize path.
>
> really what you want is a new eth entry point like eth_write_mac() that goes
> through the common layers and programs the MAC with the MAC address. this
> isnt a problem with the current net framework.
>
Detlev and I were just talking off-list about exactly that. I guess
'great minds think alike', as my grandma used to say.
> -mike
>
regards,
Ben
next prev parent reply other threads:[~2010-03-31 20:04 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-30 17:46 [U-Boot] [PATCH 1/2 v2] net, fec_mxc: only setup the device enetaddr with eeprom value, if ethaddr is not setup Heiko Schocher
2010-03-30 20:34 ` Wolfgang Denk
2010-03-30 21:57 ` Ben Warren
2010-03-30 21:59 ` Mike Frysinger
2010-03-30 22:16 ` Ben Warren
2010-03-31 5:56 ` Heiko Schocher
2010-03-31 6:07 ` Mike Frysinger
2010-03-31 6:34 ` [U-Boot] [PATCH 1/2 v3] net, fec_mxc: only setup the device enetaddr with eeprom value Heiko Schocher
2010-03-31 6:50 ` Ben Warren
2010-03-31 8:34 ` Wolfgang Denk
2010-03-31 8:41 ` Wolfgang Denk
2010-05-03 2:38 ` [U-Boot] Toggling pins using the BDI3000 Can Aydin
2010-03-31 6:34 ` [U-Boot] [PATCH] net, doc: how to setup mac address correct Heiko Schocher
2010-03-31 8:50 ` Wolfgang Denk
2010-03-31 13:44 ` [U-Boot] [PATCH 1/2 v2] net, fec_mxc: only setup the device enetaddr with eeprom value, if ethaddr is not setup Detlev Zundel
2010-03-31 13:58 ` Ben Warren
2010-03-31 14:46 ` Detlev Zundel
2010-03-31 19:59 ` Mike Frysinger
2010-03-31 20:04 ` Ben Warren [this message]
2010-03-31 9:18 ` Mike Frysinger
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=4BB3AACC.9070203@gmail.com \
--to=biggerbadderben@gmail.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