]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
skge: turn carrier off when down
authorStephen Hemminger <shemminger@linux-foundation.org>
Sat, 7 Apr 2007 23:42:06 +0000 (16:42 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Apr 2007 20:47:01 +0000 (13:47 -0700)
Driver needs to turn off carrier when down, otherwise it can
confuse bonding and bridging and looks like carrier is on immediately
when it is brought back up.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/skge.c

index 45283f3f95e4a345e4c769d2181432c0deba0082..9bc9427612f4c0871302cdc8f4f2f8da4b877d5c 100644 (file)
@@ -2462,6 +2462,7 @@ static int skge_down(struct net_device *dev)
                printk(KERN_INFO PFX "%s: disabling interface\n", dev->name);
 
        netif_stop_queue(dev);
+       netif_carrier_off(dev);
        if (hw->chip_id == CHIP_ID_GENESIS && hw->phy_type == SK_PHY_XMAC)
                cancel_rearming_delayed_work(&skge->link_thread);