From: Stephen Hemminger Date: Fri, 13 Apr 2007 18:31:50 +0000 (+0200) Subject: skge: turn carrier off when down X-Git-Tag: v2.6.16.48~13 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=35688b92b2b447cee8f9923fd462c6cd216b695e;p=karo-tx-linux.git skge: turn carrier off when down 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 Signed-off-by: Adrian Bunk --- diff --git a/drivers/net/skge.c b/drivers/net/skge.c index 25e028b7ce48..f808a35fd1f8 100644 --- a/drivers/net/skge.c +++ b/drivers/net/skge.c @@ -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)