Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27368
b: refs/heads/master
c: e59d169
h: refs/heads/master
v: v3
  • Loading branch information
Auke Kok authored and Auke Kok committed May 26, 2006
1 parent 193292d commit 2f107b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: a24e2513c2d03c9a92739ec6fa7e7208f792881e
refs/heads/master: e59d16965ca38df91c4d9390d8eb5a62d7739589
9 changes: 5 additions & 4 deletions trunk/drivers/net/ixgb/ixgb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,9 @@ ixgb_up(struct ixgb_adapter *adapter)
ixgb_configure_rx(adapter);
ixgb_alloc_rx_buffers(adapter);

/* disable interrupts and get the hardware into a known state */
IXGB_WRITE_REG(&adapter->hw, IMC, 0xffffffff);

#ifdef CONFIG_PCI_MSI
{
boolean_t pcix = (IXGB_READ_REG(&adapter->hw, STATUS) &
Expand All @@ -272,9 +275,6 @@ ixgb_up(struct ixgb_adapter *adapter)
return err;
}

/* disable interrupts and get the hardware into a known state */
IXGB_WRITE_REG(&adapter->hw, IMC, 0xffffffff);

if((hw->max_frame_size != max_frame) ||
(hw->max_frame_size !=
(IXGB_READ_REG(hw, MFS) >> IXGB_MFS_SHIFT))) {
Expand All @@ -295,11 +295,12 @@ ixgb_up(struct ixgb_adapter *adapter)
}

mod_timer(&adapter->watchdog_timer, jiffies);
ixgb_irq_enable(adapter);

#ifdef CONFIG_IXGB_NAPI
netif_poll_enable(netdev);
#endif
ixgb_irq_enable(adapter);

return 0;
}

Expand Down

0 comments on commit 2f107b5

Please sign in to comment.