Skip to content
Snippets Groups Projects
Commit 6e424b4a authored by Michael Walle's avatar Michael Walle Committed by Ramon Fried
Browse files

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: default avatarMichael Walle <michael@walle.cc>
Reviewed-by: default avatarRamon Fried <rfried.dev@gmail.com>
parent 02036d90
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment