e1000e: fix ethtool offline register test for I217
authorBruce Allan <bruce.w.allan@intel.com>
Wed, 5 Dec 2012 06:25:36 +0000 (06:25 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 27 Jan 2013 08:19:19 +0000 (00:19 -0800)
commita8fc18910b7f35a59345b5f5cd140c7f64d57d86
treebf0229abc859a33c21348bc45cfd5314aa0b8366
parent031554eab078705edb96e9a39665597e3fd22781
e1000e: fix ethtool offline register test for I217

The SHRAH[9] register on I217 has a different R/W bit-mask than RAR and
SHRAL/H registers.  Set R/W bit-mask appropriately for SHRAH[9] when
testing the R/W ability of the register.  Also, fix the error message log
format so that it does not provide misleading information (i.e. the logged
register address could be incorrect).

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Jeff Pieper <jeffrey.e.pieper@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/e1000e/ethtool.c