[U-Boot] [PATCH v3 2/2] net: eth-uclass: Support device tree MAC addresses

Grygorii Strashko grygorii.strashko at ti.com
Thu Apr 25 18:14:30 UTC 2019



On 25.04.19 18:49, Thierry Reding wrote:
> From: Thierry Reding <treding at nvidia.com>
> 
> Add the standard Ethernet device tree bindings (imported from v5.0 of
> the Linux kernel) and implement support for reading the MAC address for
> Ethernet devices in the Ethernet uclass. If the "mac-address" property
> exists, the MAC address will be parsed from that. If that property does
> not exist, the "local-mac-address" property will be tried as fallback.
> 
> MAC addresses from device tree take precedence over the ones stored in
> a network interface card's ROM.
> 
> Acked-by: Joe Hershberger <joe.hershberger at ni.com>
> Signed-off-by: Thierry Reding <treding at nvidia.com>
> ---
> Changes in v3:
> - add additional check to make sure the MAC address read from device
>   tree is a valid MAC address
> 
> Changes in v2:
> - use dev_read_u8_array_ptr()

Reviewed-by: Grygorii Strashko <grygorii.strashko at ti.com> 

-- 
Best regards,
grygorii


More information about the U-Boot mailing list