]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
tulip: Poll link status more frequently for Comet chips
authorOndrej Zary <linux@rainbow-software.org>
Sun, 22 Jun 2014 10:01:12 +0000 (12:01 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Jun 2014 00:12:36 +0000 (17:12 -0700)
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>
drivers/net/ethernet/dec/tulip/timer.c

index 768379b8aee9f171626efaf6407b6d7601e8f3c6..523d9dde50a2278fd9ddc9d47dd5c51458bf75d7 100644 (file)
@@ -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",