From: Stephen Hemminger Date: Sat, 7 Apr 2007 23:02:25 +0000 (-0700) Subject: skge: turn carrier off when down X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e5b9ddd9a0f95e133db7b43d05978f24cd6f1369;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.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: Jeff Garzik --- diff --git a/drivers/net/skge.c b/drivers/net/skge.c index 39c6677dff5e..cc907a1a5ecc 100644 --- a/drivers/net/skge.c +++ b/drivers/net/skge.c @@ -2535,6 +2535,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) del_timer_sync(&skge->link_timer);