Commit 3c4b95ab authored by Alessandro Rubini's avatar Alessandro Rubini

mode gm: tick pps immediately

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 4ebfcd09
......@@ -185,6 +185,9 @@ int wrc_ptp_set_mode(int mode)
/* If we can't lock to the atomic/gps, we say it in the class */
if (error && mode == WRC_MODE_GM)
*class_ptr = PP_CLASS_WR_GM_UNLOCKED;
/* But if we locked, start ticking, even before "ptp start" */
if (!error && mode == WRC_MODE_GM)
wrp->ops->enable_timing_output(ppi, 1);
ptp_mode = mode;
return error;
......
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