]> Pileus Git - ~andy/linux/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)
commit26b4742beaf18456195eeda1b8f59547f5569ac7
treea861cc7b22b7319d35b2349eadd44c7f7e42c244
parentd87d830720a1446403ed38bfc2da268be0d356d1
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