Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195047
b: refs/heads/master
c: 11b08be
h: refs/heads/master
i:
  195045: 2db9439
  195043: 3a8f57e
  195039: 14570a2
v: v3
  • Loading branch information
Bruce Allan authored and David S. Miller committed May 13, 2010
1 parent 49b8432 commit bf014c2
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 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: 4fe4491fc5578019174d0f02d1ae740fce78deac
refs/heads/master: 11b08be830078c1cc4af484d0f85c3a010319c97
9 changes: 9 additions & 0 deletions trunk/drivers/net/e1000e/ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -1737,6 +1737,12 @@ static void e1000_diag_test(struct net_device *netdev,
if (if_running)
dev_open(netdev);
} else {
if (!if_running && (adapter->flags & FLAG_HAS_AMT)) {
clear_bit(__E1000_TESTING, &adapter->state);
dev_open(netdev);
set_bit(__E1000_TESTING, &adapter->state);
}

e_info("online testing starting\n");
/* Online tests */
if (e1000_link_test(adapter, &data[4]))
Expand All @@ -1748,6 +1754,9 @@ static void e1000_diag_test(struct net_device *netdev,
data[2] = 0;
data[3] = 0;

if (!if_running && (adapter->flags & FLAG_HAS_AMT))
dev_close(netdev);

clear_bit(__E1000_TESTING, &adapter->state);
}
msleep_interruptible(4 * 1000);
Expand Down
16 changes: 9 additions & 7 deletions trunk/drivers/net/e1000e/netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -3444,20 +3444,22 @@ static int e1000_open(struct net_device *netdev)
if (err)
goto err_setup_rx;

/*
* If AMT is enabled, let the firmware know that the network
* interface is now open and reset the part to a known state.
*/
if (adapter->flags & FLAG_HAS_AMT) {
e1000_get_hw_control(adapter);
e1000e_reset(adapter);
}

e1000e_power_up_phy(adapter);

adapter->mng_vlan_id = E1000_MNG_VLAN_NONE;
if ((adapter->hw.mng_cookie.status &
E1000_MNG_DHCP_COOKIE_STATUS_VLAN))
e1000_update_mng_vlan(adapter);

/*
* If AMT is enabled, let the firmware know that the network
* interface is now open
*/
if (adapter->flags & FLAG_HAS_AMT)
e1000_get_hw_control(adapter);

/*
* before we allocate an interrupt, we must be ready to handle it.
* Setting DEBUG_SHIRQ in the kernel makes it fire an interrupt
Expand Down

0 comments on commit bf014c2

Please sign in to comment.