From: andy@warmcat.com (Andy Green)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC PATCH 2/2] OMAP2+: PANDA: Fix up random or missing MAC addresses for eth0 and wlan0
Date: Fri, 25 Mar 2011 20:30:52 +0000 [thread overview]
Message-ID: <4D8CFB7C.3080306@linaro.org> (raw)
In-Reply-To: <AANLkTineUsH=Qz83YKJy8YZ1KSE1si-RddQ9eBsPjMdk@mail.gmail.com>
On 03/25/2011 08:13 PM, Somebody in the thread at some point said:
Hi -
> I very much like this approach. I believed the ability to use the die
> ID to get a unique code was reasonable approach and that is why I
> didn't get an EEPROM put onto the BeagleBoard, though Gerald is
> looking at adding one on a future revision because the lack of one
> wasn't well received. Minor questions below.
Great. FWIW I think it'd be a lost opportunity to wire the EEPROM
direct to the network device. It's more flexible and powerful to regard
the EEPROM as general "board identity storage", a way to bind
information to the physical board. Then you can stick any kind of
information that you need to bind to the board in the same 25c device
and in-kernel code can take care of discovering that data when needed on
any subsystem that takes an interest.
> The use of the OMAP die id below makes this OMAP specific and the list
> referenced below of the devices to be referenced makes it Panda
> specific. Is there a way to make the list board specific, but to make
> these functions that will be used across many OMAP platforms reusable?
> I believe that this current code will result in a lot of
> cut-and-paste. My preference is that this is accepted and that we
> make this more general when we add this to other OMAP platforms, but
> it'd be great to capture your suggestions on how to do so before those
> cut-and-paste patch sets start coming in.
Sure, I would be happy to put this stuff at OMAP platform layer for
example if it makes sense to OMAP guys more generally.
> I just want to make sure I understand how this works. When a new
> network device is added, if the device name matches one of the above
> listed device paths, then the die id based MAC id is applied. This
> must be done via a device registration notifier as the registration is
> triggered when the device is detected.
That's right. Arguably it would be better if there was a core API to
register your board-specific uniqueness / entropy, and the drivers were
able to use that instead of "random" ethernet address all in network
layer. But after wasting two weeks getting pointlessly beaten up on
lkml largely on the question of how generic this issue is, I would
rather restart somewhere specific where everyone can see the obvious
benefit and if it's seen as more useful migrate it.
-Andy
next prev parent reply other threads:[~2011-03-25 20:30 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-24 21:27 [RFC PATCH 0/2] OMAP2+: PANDA: Provide unique-ish MAC addresses for Ethernet and WLAN interfaces Andy Green
2011-03-24 21:27 ` [RFC PATCH 1/2] OMAP2+: add cpu id register to MAC address helper Andy Green
2011-03-25 11:49 ` Arnd Bergmann
2011-03-25 12:08 ` Andy Green
2011-03-25 13:24 ` Arnd Bergmann
2011-03-25 13:34 ` Andy Green
2011-03-25 14:50 ` Arnd Bergmann
2011-03-25 15:00 ` Andy Green
2011-03-24 21:27 ` [RFC PATCH 2/2] OMAP2+: PANDA: Fix up random or missing MAC addresses for eth0 and wlan0 Andy Green
2011-03-25 7:39 ` Hema Kalliguddi
2011-03-25 20:13 ` Jason Kridner
2011-03-25 20:20 ` Arnd Bergmann
2011-03-25 20:23 ` Nicolas Pitre
2011-03-28 12:54 ` Jason Kridner
2011-03-25 20:30 ` Andy Green [this message]
2011-03-25 11:39 ` Arnd Bergmann
2012-06-28 14:18 ` [RFC PATCH 0/2] OMAP2+: PANDA: Provide unique-ish MAC addresses for Ethernet and WLAN interfaces Arnd Bergmann
2012-06-28 14:45 ` Steven Rostedt
2012-06-28 14:49 ` "Andy Green (林安廸)"
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=4D8CFB7C.3080306@linaro.org \
--to=andy@warmcat.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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;
as well as URLs for NNTP newsgroup(s).