net: ethernet: Align Ethernet drivers/L2 with iface state upgrade
Align Ethernet/Wi-Fi drivers/L2 with interface state handling update. For drivers, that did not support carrier detection, no changes are needed. Driver that did support carrier detection, are updated to set the carrier state to OFF by default, instead of setting the NET_IF_NO_AUTO_START flag. This allows to postopne the actual NET_EVENT_IF_UP notification until driver detects that carrier is ready. Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
This commit is contained in:
parent
89b32a0f5d
commit
b279bfd2dd
10 changed files with 11 additions and 11 deletions
|
@ -1065,10 +1065,10 @@ static void carrier_on_off(struct k_work *work)
|
|||
|
||||
if (eth_carrier_up) {
|
||||
ethernet_mgmt_raise_carrier_on_event(ctx->iface);
|
||||
net_if_up(ctx->iface);
|
||||
net_if_carrier_on(ctx->iface);
|
||||
} else {
|
||||
ethernet_mgmt_raise_carrier_off_event(ctx->iface);
|
||||
net_if_carrier_down(ctx->iface);
|
||||
net_if_carrier_off(ctx->iface);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue