Commit 75780989 authored by Alessandro Rubini's avatar Alessandro Rubini

kernel/wr_nic/endpoint.c: don't run the timer

In the switch we used to have a timer to check for link status, but
in the SPEC card the internal lm32 does that, and access to the phy
is not atomic. Assume the link is always on until we'll get notification
from lm32 to the host.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 563e3051
......@@ -159,7 +159,13 @@ int wrn_ep_open(struct net_device *dev)
/* Prepare the timer for link-up notifications */
setup_timer(&ep->ep_link_timer, wrn_ep_check_link, timerarg);
mod_timer(&ep->ep_link_timer, jiffies + WRN_LINK_POLL_INTERVAL);
if (0) {
/* not on spec */
mod_timer(&ep->ep_link_timer, jiffies + WRN_LINK_POLL_INTERVAL);
} else {
/* Assume it's already on */
netif_carrier_on(dev);
}
return 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