]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
skge: turn carrier off when down
authorStephen Hemminger <shemminger@linux-foundation.org>
Fri, 13 Apr 2007 18:31:50 +0000 (20:31 +0200)
committerAdrian Bunk <bunk@stusta.de>
Fri, 13 Apr 2007 20:58:23 +0000 (22:58 +0200)
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: Adrian Bunk <bunk@stusta.de>
drivers/net/skge.c

index 25e028b7ce48052d22f0366b998974bfdf413ca9..f808a35fd1f8d5f4e774141bf06653fbc6a59905 100644 (file)
@@ -2239,6 +2239,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);
 
        skge_write8(skge->hw, SK_REG(skge->port, LNK_LED_REG), LED_OFF);
        if (hw->chip_id == CHIP_ID_GENESIS)