diff options
author | Thierry Reding <treding@nvidia.com> | 2019-05-20 17:59:56 +0200 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2019-06-01 13:33:16 -0500 |
commit | b743bbd2ebec440f42b44392b7dc4f79a9f588cf (patch) | |
tree | a911d0c6b057076e26f58d9ad3bf7532293a5895 /net | |
parent | 8a802a2eefd36865eaa3d927d1db7af63bb2d922 (diff) | |
download | u-boot-b743bbd2ebec440f42b44392b7dc4f79a9f588cf.tar.gz u-boot-b743bbd2ebec440f42b44392b7dc4f79a9f588cf.tar.bz2 u-boot-b743bbd2ebec440f42b44392b7dc4f79a9f588cf.zip |
net: eth-uclass: Write MAC address to hardware after probe
In order for the device to use the proper MAC address, which can have
been configured in the environment prior to the device being registered,
ensure that the MAC address is written after the device has been probed.
For devices that are registered before the network stack is initialized,
this is already done during eth_initialize(). If the Ethernet device is
on a bus that is not initialized on early boot, such as PCI, the device
is not available at the time eth_initialize() is called, so we need the
MAC address programming to also happen after probe.
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/eth-uclass.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/eth-uclass.c b/net/eth-uclass.c index 2ef20df192..4225aabf1f 100644 --- a/net/eth-uclass.c +++ b/net/eth-uclass.c @@ -524,6 +524,8 @@ static int eth_post_probe(struct udevice *dev) #endif } + eth_write_hwaddr(dev); + return 0; } |