Commit 45256a97 authored by Jean-Claude BAU's avatar Jean-Claude BAU

Restart earlyLinkUp timeout

In the RX setup state machine, the earlyLinkUp timeout must be restarted
every time we enter in the START state for the first time.
parent d78d7732
......@@ -138,7 +138,11 @@ static int _hal_port_rx_setup_state_start(void *vpfg, int eventMsk, int isNewSta
}
if ( ps->lpdc->isSupported ) {
/* Wait a bit to make sure early_link_up is resetted. This
if ( isNewState )
// Restart the time-out
libwr_tmo_restart(&rxSetup->earlyup_timeout);
/* Wait a bit to make sure early_link_up is reseted. This
timeout is initialized in hal_port_rx_setup_init_fsm(),
see detailed description there. */
if (! libwr_tmo_expired(&rxSetup->earlyup_timeout)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment