]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2411cbea89d9ecf3905a5af9104bc7129291cbe5
treecb20e29a5d2acdac0d0ea10ad92608b0c64e0f74
parent9ae19247709c8efc6a077afe24cdbfb3f5550275
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