Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 168939
b: refs/heads/master
c: 189983d
h: refs/heads/master
i:
  168937: 0abc0d5
  168935: 1b26940
v: v3
  • Loading branch information
Bruce Allan authored and David S. Miller committed Nov 20, 2009
1 parent 23fcf10 commit c540514
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 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: 610c992884c80566de31d71ec361a5a7b2a0ed5e
refs/heads/master: 189983d469c6d98e64ddfb9f9ce76725cb082ee5
10 changes: 0 additions & 10 deletions trunk/drivers/net/e1000e/phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ static const u16 e1000_igp_2_cable_length_table[] =
#define I82577_CFG_ASSERT_CRS_ON_TX (1 << 15)
#define I82577_CFG_ENABLE_DOWNSHIFT (3 << 10) /* auto downshift 100/10 */
#define I82577_CTRL_REG 23
#define I82577_CTRL_DOWNSHIFT_MASK (7 << 10)

/* 82577 specific PHY registers */
#define I82577_PHY_CTRL_2 18
Expand Down Expand Up @@ -660,15 +659,6 @@ s32 e1000_copper_link_setup_82577(struct e1000_hw *hw)
phy_data |= I82577_CFG_ENABLE_DOWNSHIFT;

ret_val = phy->ops.write_phy_reg(hw, I82577_CFG_REG, phy_data);
if (ret_val)
goto out;

/* Set number of link attempts before downshift */
ret_val = phy->ops.read_phy_reg(hw, I82577_CTRL_REG, &phy_data);
if (ret_val)
goto out;
phy_data &= ~I82577_CTRL_DOWNSHIFT_MASK;
ret_val = phy->ops.write_phy_reg(hw, I82577_CTRL_REG, phy_data);

out:
return ret_val;
Expand Down

0 comments on commit c540514

Please sign in to comment.