drivers: ethernet: eth_mcux: fixed sleep after carrier activation

The sleep after carrier activation was badly ported so the time
was 1000 ms instead of 1 ms.

Signed-off-by: Ibe Van de Veire <ibe.vandeveire@gmail.com>
This commit is contained in:
Ibe Van de Veire 2023-04-07 15:15:38 +02:00 committed by Carles Cufí
commit 5fd08a3348

View file

@ -556,7 +556,7 @@ static void eth_mcux_phy_event(struct eth_context *context)
context->link_up = link_up;
context->phy_state = eth_mcux_phy_state_read_duplex;
net_eth_carrier_on(context->iface);
k_msleep(USEC_PER_MSEC);
k_msleep(1);
#if defined(CONFIG_ETH_MCUX_NO_PHY_SMI)
k_work_submit(&context->phy_work);
#endif