igb: Improve cable length function for I210, etc.
authorJoe Schultz <jschultz@xes-inc.com>
Tue, 3 Nov 2015 18:37:24 +0000 (12:37 -0600)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 15 Dec 2015 00:04:05 +0000 (16:04 -0800)
commit3627f8f1d137f6487e51ff1199a54a087a2a6446
treecb20e29a5d2acdac0d0ea10ad92608b0c64e0f74
parent06b0dd64923b5598a52de4c889a116c49493bf97
igb: Improve cable length function for I210, etc.

Previously, the PHY-specific code to get the cable length for the
I210 internal and related PHYs was reporting the cable length of a
single pair and reporting it as the min, max, and total cable length.
Update it so that all four pairs are checked so the true min, max,
and average cable lengths are reported.

Signed-off-by: Joe Schultz <jschultz@xes-inc.com>
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>
drivers/net/ethernet/intel/igb/e1000_defines.h
drivers/net/ethernet/intel/igb/e1000_hw.h
drivers/net/ethernet/intel/igb/e1000_phy.c