Hi Daniel,
On Wed, Mar 12, 2025 at 04:35:51PM +0100, Daniel Lezcano wrote:
@@ -380,6 +381,8 @@ static void thermal_zone_device_halt(struct thermal_zone_device *tz, bool shutdo
dev_emerg(&tz->device, "%s: critical temperature reached\n", tz->type);
+ set_power_state_change_reason(PSCR_OVERTEMPERATURE);
+
if (shutdown)
hw_protection_shutdown(msg, poweroff_delay_ms);
else
In the future could you add me as recipient to the series instead of this
one ? so I can get more context.
ack.
Given there are no so much hw_protection_shutdown() users in the kernel, itDo you mean, make it work with CONFIG_PSCRR=n?
could be more interesting to change the function to receive a enum
pscr_reason and then in the hw_protection_shutdown() call
pscrr_reason_to_str().
Beside, the latest version is v5:
https://lore.kernel.org/all/20250310103732.423542-1-o.rempel@xxxxxxxxxxxxxx/