-
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
eth: mcux: Do not set carrier ON if interface is not known #21294
eth: mcux: Do not set carrier ON if interface is not known #21294
Conversation
Can you please clarify what "network interface is not yet resolved" means? |
Basically it means that |
@jukkar: Thanks for explanation. My question was mostly a "first reading question", where a stumbled upon "network interface is not yet resolved" as unfamiliar wording which got me confusing. E.g. I've heard about "address not yet resolved", but don't remember hearing it in regard to interface. Your comment explains it, but I wonder if it would make sense to say "network interface is not yet initialized" or "network interface pointer [in context?] is not yet initialize". Or if you think that description captures the situation well, I'll just note it for the future. |
Sure, you suggestion makes sense. I will rephrase the sentence. |
It is possible that the network interface is not yet initialized when status of the PHY changes. In this case we must not call net_eth_carrier_on() as that will cause a crash. This was noticed with mimxrt1050_evk board. Fixes: zephyrproject-rtos#21257 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
6d8a09f
to
a4b4711
Compare
@jukkar i'm not sure about the 1ms sleep, i added that as a delay between mii commands, i need to check what it's for |
Please submit another PR if you find the sleep unnecessary. |
It is possible that the network interface is not yet resolved
when status of the PHY changes. In this case we must not call
net_eth_carrier_on() as that will cause a crash.
This was noticed with mimxrt1050_evk board.
Fixes: #21257
Signed-off-by: Jukka Rissanen jukka.rissanen@linux.intel.com