Commit a56a105f authored by Maciej Lipinski's avatar Maciej Lipinski

[fix issue #25] Force WR Link setup when link goes down and up

parent 689bb0f4
......@@ -177,8 +177,15 @@ static unsigned int run_all_state_machines(struct pp_globals *ppg)
ppi->frgn_rec_num = 0;
ppi->frgn_rec_best = -1;
if (ppg->ebest_idx == ppi->port_idx)
{
if( ppi->ext_hooks->servo_reset)
(*ppi->ext_hooks->servo_reset)(ppi);
/* FIXME: this should be done in a different place and in a nicer way.
This dirty hack was introduce to force re-doing of WR Link Setup
when a link goes down and then up. */
if (ppi->ext_data)
WRH_SRV(ppi)->doRestart = TRUE;
}
}
}
......
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