diff options
Diffstat (limited to 'drivers/net/atlx/atl1.c')
-rw-r--r-- | drivers/net/atlx/atl1.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/atlx/atl1.c b/drivers/net/atlx/atl1.c index e23ce77712f..e00a9867390 100644 --- a/drivers/net/atlx/atl1.c +++ b/drivers/net/atlx/atl1.c | |||
@@ -2642,6 +2642,7 @@ static void atl1_down(struct atl1_adapter *adapter) | |||
2642 | { | 2642 | { |
2643 | struct net_device *netdev = adapter->netdev; | 2643 | struct net_device *netdev = adapter->netdev; |
2644 | 2644 | ||
2645 | netif_stop_queue(netdev); | ||
2645 | del_timer_sync(&adapter->watchdog_timer); | 2646 | del_timer_sync(&adapter->watchdog_timer); |
2646 | del_timer_sync(&adapter->phy_config_timer); | 2647 | del_timer_sync(&adapter->phy_config_timer); |
2647 | adapter->phy_timer_pending = false; | 2648 | adapter->phy_timer_pending = false; |
@@ -2655,7 +2656,6 @@ static void atl1_down(struct atl1_adapter *adapter) | |||
2655 | adapter->link_speed = SPEED_0; | 2656 | adapter->link_speed = SPEED_0; |
2656 | adapter->link_duplex = -1; | 2657 | adapter->link_duplex = -1; |
2657 | netif_carrier_off(netdev); | 2658 | netif_carrier_off(netdev); |
2658 | netif_stop_queue(netdev); | ||
2659 | 2659 | ||
2660 | atl1_clean_tx_ring(adapter); | 2660 | atl1_clean_tx_ring(adapter); |
2661 | atl1_clean_rx_ring(adapter); | 2661 | atl1_clean_rx_ring(adapter); |
@@ -2724,6 +2724,8 @@ static int atl1_open(struct net_device *netdev) | |||
2724 | struct atl1_adapter *adapter = netdev_priv(netdev); | 2724 | struct atl1_adapter *adapter = netdev_priv(netdev); |
2725 | int err; | 2725 | int err; |
2726 | 2726 | ||
2727 | netif_carrier_off(netdev); | ||
2728 | |||
2727 | /* allocate transmit descriptors */ | 2729 | /* allocate transmit descriptors */ |
2728 | err = atl1_setup_ring_resources(adapter); | 2730 | err = atl1_setup_ring_resources(adapter); |
2729 | if (err) | 2731 | if (err) |