Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
de0f017b
Commit
de0f017b
authored
Jul 21, 2015
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
proto-starndard: invalidate T1 when entering slave mode
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
d8718e55
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
servo.c
proto-standard/servo.c
+6
-0
state-slave.c
proto-standard/state-slave.c
+1
-0
No files found.
proto-standard/servo.c
View file @
de0f017b
...
...
@@ -111,6 +111,12 @@ void pp_servo_got_resp(struct pp_instance *ppi)
Integer32
adj
;
int
s
;
/* We sometimes enter here before we got sync/f-up */
if
(
ppi
->
t1
.
seconds
==
0
&&
ppi
->
t1
.
nanoseconds
==
0
)
{
pp_diag
(
ppi
,
servo
,
2
,
"discard T3/T4: we miss T1/T2
\n
"
);
return
;
}
/*
* calc 'slave_to_master_delay', removing the correction field
* added by transparent clocks in the path.
...
...
proto-standard/state-slave.c
View file @
de0f017b
...
...
@@ -17,6 +17,7 @@ int pp_slave(struct pp_instance *ppi, unsigned char *pkt, int plen)
int
d1
,
d2
;
if
(
ppi
->
is_new_state
)
{
memset
(
&
ppi
->
t1
,
0
,
sizeof
(
ppi
->
t1
));
pp_servo_init
(
ppi
);
if
(
pp_hooks
.
new_slave
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment