Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27427
b: refs/heads/master
c: 282f33c
h: refs/heads/master
i:
  27425: 28e1f2f
  27423: 8aa2e00
v: v3
  • Loading branch information
Linas Vepstas authored and Jeff Garzik committed Jun 11, 2006
1 parent bc01823 commit 6b5077b
Show file tree
Hide file tree
Showing 2 changed files with 8 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: b89fa8b6d738d71c3a9eff584177bb7de13f33b9
refs/heads/master: 282f33c98618a3877043ec9dd5ac777c5e7c117d
8 changes: 7 additions & 1 deletion trunk/drivers/net/e1000/e1000_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3045,14 +3045,20 @@ void
e1000_update_stats(struct e1000_adapter *adapter)
{
struct e1000_hw *hw = &adapter->hw;
struct pci_dev *pdev = adapter->pdev;
unsigned long flags;
uint16_t phy_tmp;

#define PHY_IDLE_ERROR_COUNT_MASK 0x00FF

/* Prevent stats update while adapter is being reset */
/*
* Prevent stats update while adapter is being reset, or if the pci
* connection is down.
*/
if (adapter->link_speed == 0)
return;
if (pdev->error_state && pdev->error_state != pci_channel_io_normal)
return;

spin_lock_irqsave(&adapter->stats_lock, flags);

Expand Down

0 comments on commit 6b5077b

Please sign in to comment.