summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xwct4xxp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/wct4xxp.c b/wct4xxp.c
index 911dbeb..9969b72 100755
--- a/wct4xxp.c
+++ b/wct4xxp.c
@@ -875,7 +875,10 @@ static int t4_startup(struct zt_span *span)
}
if (!alreadyrunning) {
+ /* Never trust timing from something we're just starting. Let it settle first. */
+ span->alarms |= ZT_ALARM_RECOVER;
span->flags |= ZT_FLAG_RUNNING;
+ wc->alarmtimer[span->offset] = ZT_ALARMSETTLE_TIME;
wc->spansstarted++;
/* enable interrupts */
/* Start DMA, enabling DMA interrupts on read only */