Skip to content

Commit

Permalink
tulip: Poll link status more frequently for Comet chips
Browse files Browse the repository at this point in the history
It now takes up to 60 seconds to detect cable (un)plug on ADMtek Comet chips.
That's too slow and might cause people to think that it doesn't work at all.

Poll link status every 2 seconds instead of 60 for ADMtek Comet chips.
That should be fast enough while not stressing the system too much.

Tested with ADMtek AN983B.

Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Ondrej Zary authored and David S. Miller committed Jun 23, 2014
1 parent 3acc746 commit 143fa2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/dec/tulip/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ void comet_timer(unsigned long data)
{
struct net_device *dev = (struct net_device *)data;
struct tulip_private *tp = netdev_priv(dev);
int next_tick = 60*HZ;
int next_tick = 2*HZ;

if (tulip_debug > 1)
netdev_dbg(dev, "Comet link status %04x partner capability %04x\n",
Expand Down

0 comments on commit 143fa2e

Please sign in to comment.