From: Aaron Sierra Date: Tue, 3 Nov 2015 18:37:18 +0000 (-0600) Subject: igb: Don't add PHY address to PCDL address X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=06b0dd64923b5598a52de4c889a116c49493bf97;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher --- diff --git a/drivers/net/ethernet/intel/igb/e1000_phy.c b/drivers/net/ethernet/intel/igb/e1000_phy.c index c906826b6c02..8015f3b8e579 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;