diff options
author | Kantecki, Tomasz <tomasz.kantecki@intel.com> | 2011-10-17 18:06:59 -0400 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2011-11-02 19:55:08 -0400 |
commit | d5a0e3640c05b7d07c548f9f8f986dbb87cfad98 (patch) | |
tree | d952c48b1a08cb3c9b551ce8abe8d7095419e3a4 /drivers/net/ethernet/intel | |
parent | 243559f436f26b571ea3a4e70ff082892dc58f16 (diff) |
igb: Fix for I347AT4 PHY cable length unit detection
The PHY cable length unit detection was not using the correct
the correct PHY data variable for I347AT4.
Signed-off-by: Tomasz Kantecki <tomasz.kantecki@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel')
-rw-r--r-- | drivers/net/ethernet/intel/igb/e1000_phy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/igb/e1000_phy.c b/drivers/net/ethernet/intel/igb/e1000_phy.c index 7edf31efe75..b17d7c20f81 100644 --- a/drivers/net/ethernet/intel/igb/e1000_phy.c +++ b/drivers/net/ethernet/intel/igb/e1000_phy.c | |||
@@ -1687,7 +1687,7 @@ s32 igb_get_cable_length_m88_gen2(struct e1000_hw *hw) | |||
1687 | if (ret_val) | 1687 | if (ret_val) |
1688 | goto out; | 1688 | goto out; |
1689 | 1689 | ||
1690 | is_cm = !(phy_data & I347AT4_PCDC_CABLE_LENGTH_UNIT); | 1690 | is_cm = !(phy_data2 & I347AT4_PCDC_CABLE_LENGTH_UNIT); |
1691 | 1691 | ||
1692 | /* Populate the phy structure with cable length in meters */ | 1692 | /* Populate the phy structure with cable length in meters */ |
1693 | phy->min_cable_length = phy_data / (is_cm ? 100 : 1); | 1693 | phy->min_cable_length = phy_data / (is_cm ? 100 : 1); |