From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grygorii Strashko Date: Thu, 25 Apr 2019 21:14:30 +0300 Subject: [U-Boot] [PATCH v3 2/2] net: eth-uclass: Support device tree MAC addresses In-Reply-To: <20190425154915.7463-2-thierry.reding@gmail.com> References: <20190425154915.7463-1-thierry.reding@gmail.com> <20190425154915.7463-2-thierry.reding@gmail.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 25.04.19 18:49, Thierry Reding wrote: > From: Thierry Reding > > 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 > Signed-off-by: Thierry Reding > --- > 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 -- Best regards, grygorii