]> www.infradead.org Git - users/jedix/linux-maple.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)
committerKirtikar Kashyap <kirtikar.kashyap@oracle.com>
Thu, 22 Jun 2017 21:28:29 +0000 (14:28 -0700)
commit1976ce9e370b93f9c31fbb67fde4c2e85dcef9bb
treeb1f9424251c2ce3665de19d8411d9a65502048d3
parent6c3076e10c41fd9bec18e76ee2750b7174eaa3e8
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>
(cherry picked from commit 3627f8f1d137f6487e51ff1199a54a087a2a6446)

Orabug: 26325580

Signed-off-by: Kirtikar Kashyap <kirtikar.kashyap@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.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