diff options
author | Jeff Garzik <jeff@garzik.org> | 2006-12-15 11:06:17 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-12-26 15:51:30 -0500 |
commit | bb8e3311ef9de8e72f45f910e4a977c313c7009c (patch) | |
tree | bcf4b5b900face868506bc50a5e7a23338198efb /drivers/net/e1000 | |
parent | 72f3ab7462f4e153d1e8ac78e379716ad71d6923 (diff) |
e1000: workaround for the ESB2 NIC RX unit issue
In rare occasions, ESB2 systems would end up started without the RX
unit being turned on. Add a check that runs post-init to work around
this issue.
Originally from Jesse Brandeburg <jesse.brandeburg@intel.com>,
rewritten to use feature flags by me.
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/e1000')
-rw-r--r-- | drivers/net/e1000/e1000_hw.c | 6 | ||||
-rw-r--r-- | drivers/net/e1000/e1000_hw.h | 1 | ||||
-rw-r--r-- | drivers/net/e1000/e1000_main.c | 7 |
3 files changed, 14 insertions, 0 deletions
diff --git a/drivers/net/e1000/e1000_hw.c b/drivers/net/e1000/e1000_hw.c index 1ea556ef093b..ea7b371e9119 100644 --- a/drivers/net/e1000/e1000_hw.c +++ b/drivers/net/e1000/e1000_hw.c | |||
@@ -452,6 +452,12 @@ e1000_set_mac_type(struct e1000_hw *hw) | |||
452 | if (hw->mac_type >= e1000_82571) | 452 | if (hw->mac_type >= e1000_82571) |
453 | hw->has_manc2h = TRUE; | 453 | hw->has_manc2h = TRUE; |
454 | 454 | ||
455 | /* In rare occasions, ESB2 systems would end up started without | ||
456 | * the RX unit being turned on. | ||
457 | */ | ||
458 | if (hw->mac_type == e1000_80003es2lan) | ||
459 | hw->rx_needs_kicking = TRUE; | ||
460 | |||
455 | return E1000_SUCCESS; | 461 | return E1000_SUCCESS; |
456 | } | 462 | } |
457 | 463 | ||
diff --git a/drivers/net/e1000/e1000_hw.h b/drivers/net/e1000/e1000_hw.h index 18a4ae4549ad..f4d01e169c48 100644 --- a/drivers/net/e1000/e1000_hw.h +++ b/drivers/net/e1000/e1000_hw.h | |||
@@ -1463,6 +1463,7 @@ struct e1000_hw { | |||
1463 | boolean_t kmrn_lock_loss_workaround_disabled; | 1463 | boolean_t kmrn_lock_loss_workaround_disabled; |
1464 | boolean_t bad_tx_carr_stats_fd; | 1464 | boolean_t bad_tx_carr_stats_fd; |
1465 | boolean_t has_manc2h; | 1465 | boolean_t has_manc2h; |
1466 | boolean_t rx_needs_kicking; | ||
1466 | }; | 1467 | }; |
1467 | 1468 | ||
1468 | 1469 | ||
diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c index 9c2494955bfc..343eb68fff73 100644 --- a/drivers/net/e1000/e1000_main.c +++ b/drivers/net/e1000/e1000_main.c | |||
@@ -2579,6 +2579,13 @@ e1000_watchdog(unsigned long data) | |||
2579 | netif_wake_queue(netdev); | 2579 | netif_wake_queue(netdev); |
2580 | mod_timer(&adapter->phy_info_timer, jiffies + 2 * HZ); | 2580 | mod_timer(&adapter->phy_info_timer, jiffies + 2 * HZ); |
2581 | adapter->smartspeed = 0; | 2581 | adapter->smartspeed = 0; |
2582 | } else { | ||
2583 | /* make sure the receive unit is started */ | ||
2584 | if (adapter->hw.rx_needs_kicking) { | ||
2585 | struct e1000_hw *hw = &adapter->hw; | ||
2586 | uint32_t rctl = E1000_READ_REG(hw, RCTL); | ||
2587 | E1000_WRITE_REG(hw, RCTL, rctl | E1000_RCTL_EN); | ||
2588 | } | ||
2582 | } | 2589 | } |
2583 | } else { | 2590 | } else { |
2584 | if (netif_carrier_ok(netdev)) { | 2591 | if (netif_carrier_ok(netdev)) { |