Commit cbdc4b09 authored by li hongming's avatar li hongming

Only reset the endpoint rx path and minic when the link is reconnected.

parent 56a295f8
......@@ -31,6 +31,7 @@ int ep_cal_pattern_enable(int port);
int ep_cal_pattern_disable(int port);
int ep_timestamper_cal_pulse(int port);
int ep_sfp_enable(int ena,int port);
int ep_reset(int port);
void pfilter_init_default(int port);
......
......@@ -183,9 +183,7 @@ static int wrc_check_link(void)
link_status[port] = LINK_WENT_DOWN;
wrc_ptp_stop(port);
minic_rst(port);
ep_init(mac_addr[port], port);
timer_delay_ms(200);
ep_enable(1, 1, port);
timer_delay_ms(1);
minic_init(port);
/* special case */
if (port==0) {
......
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