-
Notifications
You must be signed in to change notification settings - Fork 3k
enet_tasklet_disconnect() should generate event to tasklet. #9684
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
enet_tasklet_disconnect() should generate event to tasklet. #9684
Conversation
@KariHaapalehto, thank you for your changes. |
@KariHaapalehto, thank you for your changes. |
@@ -28,7 +28,8 @@ extern "C" { | |||
enum { | |||
APPL_EVENT_CONNECT = 0x01, | |||
APPL_BACKHAUL_INTERFACE_PHY_DOWN, | |||
APPL_BACKHAUL_INTERFACE_PHY_UP |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't fully understand why we don't distinguish APPL_BACKHAUL_INTERFACE_PHY_UP (interface swithced on, but cable not necessarily connected) and APPL_BACKHAUL_LINK_UP (cable connected)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There haven't been need for that yet, from the connection staus point of view
enet_tasklet_disconnect() is now generating event to ethernet_tasklet, which will then handle it.
f8d15da
to
31c4013
Compare
CI started whilst final review response comes in |
Marking for 5.12. Or @KariHaapalehto, is there a reason this should go into a patch? I wasn't able to find out why this should be generating the event. |
Test run: SUCCESSSummary: 12 of 12 test jobs passed |
This event generation will fix the race condition of nanostack interface. |
enet_tasklet_disconnect() is now generating event to ethernet_tasklet,
which will then handle it.
Description
Correction is tested manually, using K64F&Ethernet and UBLOX_ODIN_W2&Wifi
Pull request type
Reviewers