Rafael J. Wysocki 61d8843754 iwlwifi: mvm: Populate trip table before registering thermal zone
The trip table in iwl_mvm_thermal_zone_register() is populated after
passing it to thermal_zone_device_register_with_trips(), so it may be
accessed (for instance, via sysfs) before it is ready.

To prevent that from happening, modify the function to populate the
trip table before calling thermal_zone_device_register_with_trips().

Also make the code use THERMAL_TEMP_INVALID as the "invalid temperature"
value which is also meaningful for the core.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Miri Korenblit <Miriam.rachel.korenblit@intel.com>
2024-02-08 14:54:55 +01:00
..
2024-01-19 08:08:53 -06:00
2024-01-18 11:43:55 -08:00
2024-01-11 16:55:17 -08:00
2024-01-05 19:07:18 -08:00
2023-12-13 12:49:05 +00:00
2023-12-18 16:46:08 -08:00