Skip to content
Snippets Groups Projects
Commit 64da3a91 authored by Wesley W. Terpstra's avatar Wesley W. Terpstra
Browse files

minic: fix race condition => softpll hang

The minic driver reads the TX timestamp from the device after sending.
Unfortunately, it only waited for the data to be enqueued to be sent.
Sometimes this lead to a race condition where the old TX stamp was read.

As a result, the PTP calculation goes wrong by as much as an entire second.
When in track_phase, this manifests as a bad phase offset sent to softpll.
The softpll takes years to reach that phase offset, so it is always busy.
Thus the clock drifts further and further away, never correcting.
parent db67ddf1
Branches
Tags
No related merge requests found
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