From: Grygorii Strashko <grygorii.strashko@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 2/2] net: eth-uclass: Support device tree MAC addresses
Date: Thu, 25 Apr 2019 21:14:30 +0300 [thread overview]
Message-ID: <b1673975-a8b6-0a58-7ffd-2a6b4f72a09b@ti.com> (raw)
In-Reply-To: <20190425154915.7463-2-thierry.reding@gmail.com>
On 25.04.19 18:49, Thierry Reding wrote:
> From: Thierry Reding <treding@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@ni.com>
> Signed-off-by: Thierry Reding <treding@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@ti.com>
--
Best regards,
grygorii
next prev parent reply other threads:[~2019-04-25 18:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-25 15:49 [U-Boot] [PATCH v3 1/2] net: eth-uclass: Write MAC address to hardware after probe Thierry Reding
2019-04-25 15:49 ` [U-Boot] [PATCH v3 2/2] net: eth-uclass: Support device tree MAC addresses Thierry Reding
2019-04-25 18:14 ` Grygorii Strashko [this message]
2019-05-15 18:33 ` Joe Hershberger
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=b1673975-a8b6-0a58-7ffd-2a6b4f72a09b@ti.com \
--to=grygorii.strashko@ti.com \
--cc=u-boot@lists.denx.de \
/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