Thread (5 messages) flat view 5 messages, 4 authors, 2012-02-28

[PATCH v2] ARM: LPC32xx: Ethernet driver

From: arnd@arndb.de (Arnd Bergmann)
Date: 2012-02-28 13:42:00
Also in: lkml, netdev

On Tuesday 28 February 2012, Roland Stigge wrote:
Yes, that's why we previously had a cmdline param for it (but removed it
upon request from the netdev maintainer).

So if the hardware defaults to 00:00:00:00:00:00, what is the
"consistent policy we want to enforce in all drivers"?

A link or hint would be sufficient.
I think the most common strategy for platform drivers these days is

1. use what the hardware provides
2. call of_get_mac_address(dev->of_node, ...)
3. use random_ether_addr

in that order. of_get_mac_address just returns NULL when there
is no device tree or no local-mac-address property, so you can
put it into the driver right away.

	Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help