Skip to content

drivers: ethernet: dont require mac address in dts #92166

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

maass-hamburg
Copy link
Collaborator

  • don't require local-mac-address to be present in the dt
  • fix cases where zephyr,random-mac-address was only used if local-mac-address was not valid. zephyr,random-mac-address has priority over local-mac-address according to ethernet-controller.yaml.

make sure, that zephyr,random-mac-address
has a higher prio, than local-mac-address, as
documented in ethernet-controller.yaml.

Also make sure, that no vaild mac address
doesn't lead to init fail, as it can still be
set later via set_config.

Signed-off-by: Fin Maaß <[email protected]>
only set a random mac if zephyr,random-mac-address
is set in dt.

Signed-off-by: Fin Maaß <[email protected]>
make sure, that zephyr,random-mac-address
has a higher prio, than local-mac-address, as
documented in ethernet-controller.yaml.

Signed-off-by: Fin Maaß <[email protected]>
use DT_INST_PROP_OR for local-mac-address, so
that it is not required to be set in dt, as there are
other ways to se the mac address.

Signed-off-by: Fin Maaß <[email protected]>
Copy link

@venodela
Copy link
Contributor

drivers/ethernet/eth_xilinx_axienet.c: Changes look fine to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants