Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
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
Software for White Rabbit PTP Core
Commits
cbdc4b09
Commit
cbdc4b09
authored
Nov 25, 2018
by
li hongming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only reset the endpoint rx path and minic when the link is reconnected.
parent
56a295f8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
endpoint.h
include/endpoint.h
+1
-0
wrc_main.c
wrc_main.c
+1
-3
No files found.
include/endpoint.h
View file @
cbdc4b09
...
@@ -31,6 +31,7 @@ int ep_cal_pattern_enable(int port);
...
@@ -31,6 +31,7 @@ int ep_cal_pattern_enable(int port);
int
ep_cal_pattern_disable
(
int
port
);
int
ep_cal_pattern_disable
(
int
port
);
int
ep_timestamper_cal_pulse
(
int
port
);
int
ep_timestamper_cal_pulse
(
int
port
);
int
ep_sfp_enable
(
int
ena
,
int
port
);
int
ep_sfp_enable
(
int
ena
,
int
port
);
int
ep_reset
(
int
port
);
void
pfilter_init_default
(
int
port
);
void
pfilter_init_default
(
int
port
);
...
...
wrc_main.c
View file @
cbdc4b09
...
@@ -183,9 +183,7 @@ static int wrc_check_link(void)
...
@@ -183,9 +183,7 @@ static int wrc_check_link(void)
link_status
[
port
]
=
LINK_WENT_DOWN
;
link_status
[
port
]
=
LINK_WENT_DOWN
;
wrc_ptp_stop
(
port
);
wrc_ptp_stop
(
port
);
minic_rst
(
port
);
minic_rst
(
port
);
ep_init
(
mac_addr
[
port
],
port
);
timer_delay_ms
(
1
);
timer_delay_ms
(
200
);
ep_enable
(
1
,
1
,
port
);
minic_init
(
port
);
minic_init
(
port
);
/* special case */
/* special case */
if
(
port
==
0
)
{
if
(
port
==
0
)
{
...
...
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