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: Aaron Sierra <asierra@xes-inc.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
Aaron Sierra 2015-11-03 12:37:18 -06:00 committed by Jeff Kirsher
parent 2a3cdead8b
commit 06b0dd6492
1 changed files with 1 additions and 2 deletions

View File

@ -1734,8 +1734,7 @@ s32 igb_get_cable_length_m88_gen2(struct e1000_hw *hw)
goto out;
/* Get cable length from PHY Cable Diagnostics Control Reg */
ret_val = phy->ops.read_reg(hw, (I347AT4_PCDL + phy->addr),
&phy_data);
ret_val = phy->ops.read_reg(hw, I347AT4_PCDL, &phy_data);
if (ret_val)
goto out;