Home
last modified time | relevance | path

Searched hist:"51 f2aaf0" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/thermal/intel/
H A Dintel_soc_dts_iosf.c51f2aaf0 Thu Aug 10 14:13:25 CDT 2023 Rafael J. Wysocki <rafael.j.wysocki@intel.com> thermal: intel: intel_soc_dts_iosf: Change initialization ordering

The initial configuration of trip points in intel_soc_dts_iosf_init()
takes place after registering the sensor thermal zones which is
potentially problematic, because it may race with the setting of trip
point temperatures via sysfs, as there is no synchronization between it
and sys_set_trip_temp().

To address this, change the initialization ordering so that the trip
points are configured prior to the registration of thermal zones.

Accordingly, change the cleanup ordering in intel_soc_dts_iosf_exit()
to remove the thermal zones before resetting the trip points.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>