summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@linux-foundation.org>2007-04-13 20:31:50 +0200
committerAdrian Bunk <bunk@stusta.de>2007-04-13 22:58:23 +0200
commit35688b92b2b447cee8f9923fd462c6cd216b695e (patch)
treedb663ff828870bc8a922c59f055d7a2bc06c9d1b /drivers
parent0243ef462fbe940dafde1f47d3ea29dbf5146b21 (diff)
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 <shemminger@linux-foundation.org> Signed-off-by: Adrian Bunk <bunk@stusta.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/skge.c1
1 files changed, 1 insertions, 0 deletions
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)