Commit 06b0dd64 authored by Aaron Sierra's avatar Aaron Sierra Committed by Jeff Kirsher

igb: Don't add PHY address to PCDL address

There is no reason to add the PHY address into the PCDL register address.
Signed-off-by: default avatarAaron Sierra <asierra@xes-inc.com>
Tested-by: default avatarAaron Brown <aaron.f.brown@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 2a3cdead
...@@ -1734,8 +1734,7 @@ s32 igb_get_cable_length_m88_gen2(struct e1000_hw *hw) ...@@ -1734,8 +1734,7 @@ s32 igb_get_cable_length_m88_gen2(struct e1000_hw *hw)
goto out; goto out;
/* Get cable length from PHY Cable Diagnostics Control Reg */ /* Get cable length from PHY Cable Diagnostics Control Reg */
ret_val = phy->ops.read_reg(hw, (I347AT4_PCDL + phy->addr), ret_val = phy->ops.read_reg(hw, I347AT4_PCDL, &phy_data);
&phy_data);
if (ret_val) if (ret_val)
goto out; goto out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment