]> git.baikalelectronics.ru Git - uboot.git/commit
net: eth-uclass: Write MAC address to hardware after probe
authorThierry Reding <treding@nvidia.com>
Mon, 20 May 2019 15:59:56 +0000 (17:59 +0200)
committerJoe Hershberger <joe.hershberger@ni.com>
Sat, 1 Jun 2019 18:33:16 +0000 (13:33 -0500)
commit7abdc05e19c75e1c0e33583e4b90cd7ed9e723cc
treea911d0c6b057076e26f58d9ad3bf7532293a5895
parent8bd01433cf70d850dea0e485c9b3c8120c2857b0
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>
net/eth-uclass.c