lkml.org 
[lkml]   [2012]   [Feb]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] ARM: LPC32xx: Ethernet driver
On 02/28/2012 02:41 PM, Arnd Bergmann wrote:
>> 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.

Cool, thanks - will do!

Roland


\
 
 \ /
  Last update: 2012-02-28 14:53    [W:0.061 / U:0.436 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site