Commit c6a0fe43 authored by Grzegorz Daniluk's avatar Grzegorz Daniluk

wrc_main: wait before link-up (workaround for wrs v4.2 problem)

We have experienced the problem when re-loading LM32 firmware many times when
WRPC synchronizes to WRS v4.2 (the latest WRS firmware is v5.0). Sometimes after
reprogramming LM32 WRS was reporting a bitslide value the same as for the
previously established link. This was resulting in wrong synchronization and
1-PPS skew off by the difference between the actual and reported WRS bitslide.
This problem is not new with this WRPC v4.0, we've managed to reproduce is also
with WRPC v3.0 and WRS v4.2. Testing WRPC v4.0 with WRS v5.0 did not reveal this

With this workaround we wait longer before re-enabling the link so that WRS v4.2
for sure notices link down and re-measures the bitslide.
parent f1a97700
......@@ -82,6 +82,9 @@ static void wrc_initialize(void)
/* Sleep for 1s to make sure WRS v4.2 always realizes that
* the link is down */
ep_enable(1, 1);
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