aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/e100.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/net/e100.c b/drivers/net/e100.c
index 2c8c14ebf205..c1ca2dae7c48 100644
--- a/drivers/net/e100.c
+++ b/drivers/net/e100.c
@@ -1743,8 +1743,11 @@ static int e100_up(struct nic *nic)
1743 if((err = request_irq(nic->pdev->irq, e100_intr, SA_SHIRQ, 1743 if((err = request_irq(nic->pdev->irq, e100_intr, SA_SHIRQ,
1744 nic->netdev->name, nic->netdev))) 1744 nic->netdev->name, nic->netdev)))
1745 goto err_no_irq; 1745 goto err_no_irq;
1746 e100_enable_irq(nic);
1747 netif_wake_queue(nic->netdev); 1746 netif_wake_queue(nic->netdev);
1747 netif_poll_enable(nic->netdev);
1748 /* enable ints _after_ enabling poll, preventing a race between
1749 * disable ints+schedule */
1750 e100_enable_irq(nic);
1748 return 0; 1751 return 0;
1749 1752
1750err_no_irq: 1753err_no_irq:
@@ -1758,11 +1761,13 @@ err_rx_clean_list:
1758 1761
1759static void e100_down(struct nic *nic) 1762static void e100_down(struct nic *nic)
1760{ 1763{
1764 /* wait here for poll to complete */
1765 netif_poll_disable(nic->netdev);
1766 netif_stop_queue(nic->netdev);
1761 e100_hw_reset(nic); 1767 e100_hw_reset(nic);
1762 free_irq(nic->pdev->irq, nic->netdev); 1768 free_irq(nic->pdev->irq, nic->netdev);
1763 del_timer_sync(&nic->watchdog); 1769 del_timer_sync(&nic->watchdog);
1764 netif_carrier_off(nic->netdev); 1770 netif_carrier_off(nic->netdev);
1765 netif_stop_queue(nic->netdev);
1766 e100_clean_cbs(nic); 1771 e100_clean_cbs(nic);
1767 e100_rx_clean_list(nic); 1772 e100_rx_clean_list(nic);
1768} 1773}