Skip to content

Commit 06b0dd6

Browse files
Aaron SierraJeff Kirsher
authored andcommitted
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 <[email protected]> Tested-by: Aaron Brown <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 2a3cdea commit 06b0dd6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/net/ethernet/intel/igb/e1000_phy.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1734,8 +1734,7 @@ s32 igb_get_cable_length_m88_gen2(struct e1000_hw *hw)
17341734
goto out;
17351735

17361736
/* Get cable length from PHY Cable Diagnostics Control Reg */
1737-
ret_val = phy->ops.read_reg(hw, (I347AT4_PCDL + phy->addr),
1738-
&phy_data);
1737+
ret_val = phy->ops.read_reg(hw, I347AT4_PCDL, &phy_data);
17391738
if (ret_val)
17401739
goto out;
17411740

0 commit comments

Comments
 (0)