Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 57103
b: refs/heads/master
c: 4731305
h: refs/heads/master
i:
  57101: 39da456
  57099: c7bc0c4
  57095: 29472e7
  57087: c4afeac
v: v3
  • Loading branch information
Herbert Xu authored and Jeff Garzik committed May 30, 2007
1 parent e86930a commit a448a38
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8a32352661cc8e942897d205ba18f871ef7be597
refs/heads/master: 47313054352b879a2bc65379d55b05f48a0af7ec
9 changes: 8 additions & 1 deletion trunk/drivers/net/e1000/e1000_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1325,7 +1325,10 @@ e1000_sw_init(struct e1000_adapter *adapter)
spin_lock_init(&adapter->tx_queue_lock);
#endif

atomic_set(&adapter->irq_sem, 1);
/* Explicitly disable IRQ since the NIC can be in any state. */
atomic_set(&adapter->irq_sem, 0);
e1000_irq_disable(adapter);

spin_lock_init(&adapter->stats_lock);

set_bit(__E1000_DOWN, &adapter->flags);
Expand Down Expand Up @@ -1431,6 +1434,10 @@ e1000_open(struct net_device *netdev)
/* From here on the code is the same as e1000_up() */
clear_bit(__E1000_DOWN, &adapter->flags);

#ifdef CONFIG_E1000_NAPI
netif_poll_enable(netdev);
#endif

e1000_irq_enable(adapter);

/* fire a link status change interrupt to start the watchdog */
Expand Down

0 comments on commit a448a38

Please sign in to comment.