Commit aabb366c authored by Adam Wujek's avatar Adam Wujek

wrc_main: call wrc_ptp_link_down (from ppsi) on link down

Signed-off-by: 's avatarAdam Wujek <adam.wujek@creotech.pl>
parent e75c061d
......@@ -147,11 +147,8 @@ static int wrc_check_link(void)
gen_gpio_out(&pin_sysc_led_link, 0);
link_status = NETIF_LINK_WENT_DOWN;
wrc_ptp_stop();
wrc_ptp_link_down();
rv = 1;
/* special case */
spll_init(SPLL_MODE_FREE_RUNNING_MASTER, 0, SPLL_FLAG_ALIGN_PPS);
shw_pps_gen_enable_output(0);
} else
link_status = (state ? NETIF_LINK_UP : NETIF_LINK_DOWN);
......
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