diff options
author | Michael Walle <michael@walle.cc> | 2021-02-24 17:30:44 +0100 |
---|---|---|
committer | Ramon Fried <rfried.dev@gmail.com> | 2021-06-18 11:29:17 +0300 |
commit | 6e424b4acac0dba486a97ecd80a78aa0fea43683 (patch) | |
tree | 9afb8167e9fcfab2daefe9ae048cdf0c70fba3b4 /include | |
parent | 02036d90ec10510c8218aad463a332a50c3528c4 (diff) | |
download | u-boot-6e424b4acac0dba486a97ecd80a78aa0fea43683.tar.gz u-boot-6e424b4acac0dba486a97ecd80a78aa0fea43683.tar.bz2 u-boot-6e424b4acac0dba486a97ecd80a78aa0fea43683.zip |
net: use a more deterministic approach to get the active ethernet device
If the environment variable "ethact" is not set, the first device in the
uclass is returned. This depends on the probing order of the ethernet
devices. Moreover it is not not configurable at all.
Try to return the ethernet device with sequence id 0 first which then
can be configured by the aliases in a device tree. Fall back to the old
mechanism in case of an error.
Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions