summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Sierra <asierra@xes-inc.com>2015-11-03 12:37:18 -0600
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2015-12-14 15:58:59 -0800
commit06b0dd64923b5598a52de4c889a116c49493bf97 (patch)
tree07985968b2bf844986ddaf8097e99a5d726f430d
parent2a3cdead8b408351fa1e3079b220fa331480ffbc (diff)
downloadop-kernel-dev-06b0dd64923b5598a52de4c889a116c49493bf97.zip
op-kernel-dev-06b0dd64923b5598a52de4c889a116c49493bf97.tar.gz
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>
-rw-r--r--drivers/net/ethernet/intel/igb/e1000_phy.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/intel/igb/e1000_phy.c b/drivers/net/ethernet/intel/igb/e1000_phy.c
index c906826..8015f3b 100644
--- a/drivers/net/ethernet/intel/igb/e1000_phy.c
+++ b/drivers/net/ethernet/intel/igb/e1000_phy.c
@@ -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;
OpenPOWER on IntegriCloud