diff options
author | Don Skidmore <donald.c.skidmore@intel.com> | 2014-02-27 23:32:41 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-02-28 12:40:56 -0500 |
commit | 429d6a3be9b656f9400356f026328f3a2e900887 (patch) | |
tree | 074535acb391a3918afa797528df1d725f4bd286 /drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c | |
parent | 1f86c983bebbb226b69f986bdc7b8b4299a2004c (diff) |
ixgbe: collect all 82599 AUTOC code in one function
When reading or writing to the AUTOC register on 82599 devices we need to
preform various operations that aren't needed for other MAC types. This
patch will collect all of that code into one place to minimize MAC checks
in common code paths.
While doing this I also clean up some cases where we weren't holding the
SW/FW semaphore during a read/modify/write of AUTOC.
Signed-off-by: Don Skidmore <donald.c.skidmore@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c')
-rw-r--r-- | drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c index a26f3fee4f35..10e563cb847a 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c | |||
@@ -1316,6 +1316,8 @@ static struct ixgbe_mac_operations mac_ops_82598 = { | |||
1316 | .get_thermal_sensor_data = NULL, | 1316 | .get_thermal_sensor_data = NULL, |
1317 | .init_thermal_sensor_thresh = NULL, | 1317 | .init_thermal_sensor_thresh = NULL, |
1318 | .mng_fw_enabled = NULL, | 1318 | .mng_fw_enabled = NULL, |
1319 | .prot_autoc_read = &prot_autoc_read_generic, | ||
1320 | .prot_autoc_write = &prot_autoc_write_generic, | ||
1319 | }; | 1321 | }; |
1320 | 1322 | ||
1321 | static struct ixgbe_eeprom_operations eeprom_ops_82598 = { | 1323 | static struct ixgbe_eeprom_operations eeprom_ops_82598 = { |