Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193762
b: refs/heads/master
c: 411f557
h: refs/heads/master
v: v3
  • Loading branch information
Alexander Duyck authored and David S. Miller committed Mar 23, 2010
1 parent 6c13590 commit 4310bc9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 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: 33e2bf6aa16061bae1253514e7c32af27d2b4b31
refs/heads/master: 411f557c3accbaa1e2b378d29aeaffffbec39ccc
20 changes: 0 additions & 20 deletions trunk/drivers/net/igb/e1000_82575.c
Original file line number Diff line number Diff line change
Expand Up @@ -1446,23 +1446,13 @@ void igb_vmdq_set_replication_pf(struct e1000_hw *hw, bool enable)
**/
static s32 igb_read_phy_reg_82580(struct e1000_hw *hw, u32 offset, u16 *data)
{
u32 mdicnfg = 0;
s32 ret_val;


ret_val = hw->phy.ops.acquire(hw);
if (ret_val)
goto out;

/*
* We config the phy address in MDICNFG register now. Same bits
* as before. The values in MDIC can be written but will be
* ignored. This allows us to call the old function after
* configuring the PHY address in the new register
*/
mdicnfg = (hw->phy.addr << E1000_MDIC_PHY_SHIFT);
wr32(E1000_MDICNFG, mdicnfg);

ret_val = igb_read_phy_reg_mdic(hw, offset, data);

hw->phy.ops.release(hw);
Expand All @@ -1481,23 +1471,13 @@ static s32 igb_read_phy_reg_82580(struct e1000_hw *hw, u32 offset, u16 *data)
**/
static s32 igb_write_phy_reg_82580(struct e1000_hw *hw, u32 offset, u16 data)
{
u32 mdicnfg = 0;
s32 ret_val;


ret_val = hw->phy.ops.acquire(hw);
if (ret_val)
goto out;

/*
* We config the phy address in MDICNFG register now. Same bits
* as before. The values in MDIC can be written but will be
* ignored. This allows us to call the old function after
* configuring the PHY address in the new register
*/
mdicnfg = (hw->phy.addr << E1000_MDIC_PHY_SHIFT);
wr32(E1000_MDICNFG, mdicnfg);

ret_val = igb_write_phy_reg_mdic(hw, offset, data);

hw->phy.ops.release(hw);
Expand Down

0 comments on commit 4310bc9

Please sign in to comment.