Skip to content

Commit

Permalink
skge: turn carrier off when down
Browse files Browse the repository at this point in the history
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: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Stephen Hemminger authored and Jeff Garzik committed Apr 11, 2007
1 parent 5ab7ffe commit e5b9ddd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/skge.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e5b9ddd

Please sign in to comment.