Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1442a9a9 authored by Luca Coelho's avatar Luca Coelho
Browse files

iwlwifi: mvm: return -ENODATA when reading the temperature with the FW down

It seems that libsensors treats -EIO as a special non-recoverable
failure when it tries to read the temperature while the firmware is
not running.  To solve that, change the error code to a milder
-ENODATA.

This fixes https://bugzilla.kernel.org/show_bug.cgi?id=196941



Fixes: c221daf2 ("iwlwifi: mvm: add registration to thermal zone")
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
parent 1efc3843
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -631,7 +631,7 @@ static int iwl_mvm_tzone_get_temp(struct thermal_zone_device *device,

	if (!iwl_mvm_firmware_running(mvm) ||
	    mvm->fwrt.cur_fw_img != IWL_UCODE_REGULAR) {
		ret = -EIO;
		ret = -ENODATA;
		goto out;
	}