-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Various improvements for the eth_mcux driver #28874
Merged
carlescufi
merged 10 commits into
zephyrproject-rtos:master
from
riedonetworks:eth-mcux-improvements
Oct 9, 2020
Merged
Various improvements for the eth_mcux driver #28874
carlescufi
merged 10 commits into
zephyrproject-rtos:master
from
riedonetworks:eth-mcux-improvements
Oct 9, 2020
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
armandciejak
force-pushed
the
eth-mcux-improvements
branch
2 times, most recently
from
October 5, 2020 07:40
0c0fbf9
to
01b12c1
Compare
jukkar
reviewed
Oct 5, 2020
This allows setting the MAC address at run time. Signed-off-by: Antoine Zen-Ruffinen <[email protected]> Signed-off-by: Armand Ciejak <[email protected]>
armandciejak
force-pushed
the
eth-mcux-improvements
branch
from
October 5, 2020 09:37
01b12c1
to
972a399
Compare
agansari
suggested changes
Oct 5, 2020
Use node's status in device tree instead. Signed-off-by: Armand Ciejak <[email protected]>
This fixes wrong value for i.MX RT. This is one less hard-coded value in eth_N_context structures. Signed-off-by: Armand Ciejak <[email protected]>
This is better than declaring it unused. Signed-off-by: Armand Ciejak <[email protected]>
Spare a function call. Signed-off-by: Armand Ciejak <[email protected]>
Do not override OUI of the local MAC address in the devicetree. Simplify the mac address assignment conditions. Each interface has its own function. Code duplication will be eliminated with the use of DT_INST_FOREACH_STATUS_OKAY in a later commit to completely remove duplicated code. The 3 possible MAC address assignment (local, random and unique) are covered and have been tested. Signed-off-by: Armand Ciejak <[email protected]>
As well as #ifndef. Apply it for all CONFIG_* defines. Signed-off-by: Armand Ciejak <[email protected]>
This covers the case of 1 controller having PTP enabled and the other not. Signed-off-by: Armand Ciejak <[email protected]>
Both eth_* and eth* were used before. Signed-off-by: Armand Ciejak <[email protected]>
VALN -> VLAN Signed-off-by: Armand Ciejak <[email protected]>
armandciejak
force-pushed
the
eth-mcux-improvements
branch
from
October 5, 2020 16:54
972a399
to
a0db435
Compare
dleach02
reviewed
Oct 5, 2020
agansari
approved these changes
Oct 7, 2020
jukkar
approved these changes
Oct 7, 2020
dleach02
approved these changes
Oct 8, 2020
chrta
added a commit
to lemonbeat/zephyr
that referenced
this pull request
Nov 5, 2020
When setting the MAC address, the ethernet driver has to call net_if_set_link_addr() with the updated address. This was missing and is added now. See e.g. zephyrproject-rtos#28874 Signed-off-by: Christian Taedcke <[email protected]>
jukkar
pushed a commit
that referenced
this pull request
Nov 6, 2020
When setting the MAC address, the ethernet driver has to call net_if_set_link_addr() with the updated address. This was missing and is added now. See e.g. #28874 Signed-off-by: Christian Taedcke <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Here is the list of improvements:
set_config
NOTE: There should be absolutely no functional change.