Skip to content
Commit 4cf2ddf1 authored by Oleksij Rempel's avatar Oleksij Rempel Committed by Daniel Lezcano
Browse files

thermal/drivers/imx: Implement runtime PM support



Starting with commit d92ed2c9 ("thermal: imx: Use driver's local
data to decide whether to run a measurement") this driver stared using
irq_enabled flag to make decision to power on/off the thermal
core. This triggered a regression, where after reaching critical
temperature, alarm IRQ handler set irq_enabled to false, disabled
thermal core and was not able read temperature and disable cooling
sequence.

In case the cooling device is "CPU/GPU freq", the system will run with
reduce performance until next reboot.

To solve this issue, we need to move all parts implementing hand made
runtime power management and let it handle actual runtime PM framework.

Fixes: d92ed2c9 ("thermal: imx: Use driver's local data to decide whether to run a measurement")
Signed-off-by: default avatarOleksij Rempel <o.rempel@pengutronix.de>
Tested-by: default avatarPetr Beneš <petr.benes@ysoft.com>
Link: https://lore.kernel.org/r/20211117103426.81813-1-o.rempel@pengutronix.de


Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
parent fa55b7dc
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