Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 215223
b: refs/heads/master
c: c6ce385
h: refs/heads/master
i:
  215221: 752460a
  215219: 23ac473
  215215: d1cf7a7
v: v3
  • Loading branch information
Carolyn Wyborny authored and David S. Miller committed Oct 18, 2010
1 parent 2ed7b18 commit a761265
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 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: a7714338aa9332e569b38c7643dc4a7bb37a0ff5
refs/heads/master: c6ce3854f098e1307ecd3bde07903d65fb14a9cb
19 changes: 8 additions & 11 deletions trunk/drivers/net/e1000e/ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -1717,13 +1717,6 @@ static void e1000_diag_test(struct net_device *netdev,

e_info("offline testing starting\n");

/*
* Link test performed before hardware reset so autoneg doesn't
* interfere with test result
*/
if (e1000_link_test(adapter, &data[4]))
eth_test->flags |= ETH_TEST_FL_FAILED;

if (if_running)
/* indicate we're in test mode */
dev_close(netdev);
Expand All @@ -1747,15 +1740,19 @@ static void e1000_diag_test(struct net_device *netdev,
if (e1000_loopback_test(adapter, &data[3]))
eth_test->flags |= ETH_TEST_FL_FAILED;

/* force this routine to wait until autoneg complete/timeout */
adapter->hw.phy.autoneg_wait_to_complete = 1;
e1000e_reset(adapter);
adapter->hw.phy.autoneg_wait_to_complete = 0;

if (e1000_link_test(adapter, &data[4]))
eth_test->flags |= ETH_TEST_FL_FAILED;

/* restore speed, duplex, autoneg settings */
adapter->hw.phy.autoneg_advertised = autoneg_advertised;
adapter->hw.mac.forced_speed_duplex = forced_speed_duplex;
adapter->hw.mac.autoneg = autoneg;

/* force this routine to wait until autoneg complete/timeout */
adapter->hw.phy.autoneg_wait_to_complete = 1;
e1000e_reset(adapter);
adapter->hw.phy.autoneg_wait_to_complete = 0;

clear_bit(__E1000_TESTING, &adapter->state);
if (if_running)
Expand Down

0 comments on commit a761265

Please sign in to comment.