]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: fix register access during ethtool loopback test
authorEmil Tantilov <emil.s.tantilov@intel.com>
Fri, 12 Apr 2013 02:10:25 +0000 (02:10 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 26 Apr 2013 02:05:45 +0000 (19:05 -0700)
commit989af056fbe3bb12647f857d94e1ca71173ad845
treea861cc7b22b7319d35b2349eadd44c7f7e42c244
parentcb64bdf4acac9905730e9f63f302d9ff89ae6dcd
ixgbe: fix register access during ethtool loopback test

This patch cleans up the logic in ixgbe_setup_loopback_test() to only access
registers applicable to the MAC type. AUTOC is only valid on MACs older than
X540. MACC is used for X540.

In addition it removes a read of AUTOC and uses the stored value to force the
link up.

Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c