Skip to content
Commit 0bb619f9 authored by Hans de Goede's avatar Hans de Goede Committed by Rafael J. Wysocki
Browse files

thermal/intel/intel_soc_dts_iosf: Fix reporting wrong temperatures



Since commit 955fb871 ("thermal/intel/intel_soc_dts_iosf: Use Intel
TCC library") intel_soc_dts_iosf is reporting the wrong temperature.

The driver expects tj_max to be in milli-degrees-celcius but after
the switch to the TCC library this is now in degrees celcius so
instead of e.g. 90000 it is set to 90 causing a temperature 45
degrees below tj_max to be reported as -44910 milli-degrees
instead of as 45000 milli-degrees.

Fix this by adding back the lost factor of 1000.

Fixes: 955fb871 ("thermal/intel/intel_soc_dts_iosf: Use Intel TCC library")
Reported-by: default avatarBernhard Krug <b.krug@elektronenpumpe.de>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Acked-by: default avatarZhang Rui <rui.zhang@intel.com>
Cc: 6.3+ <stable@vger.kernel.org> # 6.3+
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 858fd168
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment