From: Andrzej Wilczynski <andrzejx.wilczyn...@intel.com>

According to data sheet, E610 doesn't expose current reading from thermal
sensors. Currently, E610 sensor ops are the same as for X540, which will
include the unsupported op. This patch disables those ops for E610 to avoid
attempts to read those sensors.

Signed-off-by: Andrzej Wilczynski <andrzejx.wilczyn...@intel.com>
Co-authored-by: RemigiuszX Konca <remigiusz.ko...@intel.com>
Signed-off-by: Anatoly Burakov <anatoly.bura...@intel.com>
---
 drivers/net/ixgbe/base/ixgbe_e610.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/ixgbe/base/ixgbe_e610.c 
b/drivers/net/ixgbe/base/ixgbe_e610.c
index 7ea495db97..ab02b11d6a 100644
--- a/drivers/net/ixgbe/base/ixgbe_e610.c
+++ b/drivers/net/ixgbe/base/ixgbe_e610.c
@@ -3431,6 +3431,8 @@ s32 ixgbe_init_ops_E610(struct ixgbe_hw *hw)
        mac->ops.get_fw_tsam_mode = ixgbe_get_fw_tsam_mode_E610;
        mac->ops.get_fw_version = ixgbe_aci_get_fw_ver;
        mac->ops.get_nvm_version = ixgbe_get_active_nvm_ver;
+       mac->ops.get_thermal_sensor_data = NULL;
+       mac->ops.init_thermal_sensor_thresh = NULL;
 
        /* PHY */
        phy->ops.init = ixgbe_init_phy_ops_E610;
-- 
2.43.5

Reply via email to