|
|
@@ -67,7 +67,7 @@ static s32 ixgbe_write_i2c_byte_82599(struct ixgbe_hw *hw, u8 byte_offset,
|
|
|
static s32 ixgbe_reset_pipeline_82599(struct ixgbe_hw *hw);
|
|
|
static bool ixgbe_verify_lesm_fw_enabled_82599(struct ixgbe_hw *hw);
|
|
|
|
|
|
-static bool ixgbe_mng_enabled(struct ixgbe_hw *hw)
|
|
|
+bool ixgbe_mng_enabled(struct ixgbe_hw *hw)
|
|
|
{
|
|
|
u32 fwsm, manc, factps;
|
|
|
|
|
|
@@ -94,7 +94,7 @@ static void ixgbe_init_mac_link_ops_82599(struct ixgbe_hw *hw)
|
|
|
* and MNG not enabled
|
|
|
*/
|
|
|
if ((mac->ops.get_media_type(hw) == ixgbe_media_type_fiber) &&
|
|
|
- !hw->mng_fw_enabled) {
|
|
|
+ !ixgbe_mng_enabled(hw)) {
|
|
|
mac->ops.disable_tx_laser =
|
|
|
&ixgbe_disable_tx_laser_multispeed_fiber;
|
|
|
mac->ops.enable_tx_laser =
|
|
|
@@ -1206,7 +1206,7 @@ mac_reset_top:
|
|
|
* Likewise if we support WoL we don't want change the
|
|
|
* LMS state either.
|
|
|
*/
|
|
|
- if ((hw->phy.multispeed_fiber && hw->mng_fw_enabled) ||
|
|
|
+ if ((hw->phy.multispeed_fiber && ixgbe_mng_enabled(hw)) ||
|
|
|
hw->wol_enabled)
|
|
|
hw->mac.orig_autoc =
|
|
|
(hw->mac.orig_autoc & ~IXGBE_AUTOC_LMS_MASK) |
|
|
|
@@ -2500,7 +2500,6 @@ static struct ixgbe_mac_operations mac_ops_82599 = {
|
|
|
.release_swfw_sync = &ixgbe_release_swfw_sync,
|
|
|
.get_thermal_sensor_data = &ixgbe_get_thermal_sensor_data_generic,
|
|
|
.init_thermal_sensor_thresh = &ixgbe_init_thermal_sensor_thresh_generic,
|
|
|
- .mng_fw_enabled = &ixgbe_mng_enabled,
|
|
|
.prot_autoc_read = &prot_autoc_read_82599,
|
|
|
.prot_autoc_write = &prot_autoc_write_82599,
|
|
|
};
|