[PATCH] thermal/drivers/imx: Disable clock on runtime resume failure

Daniel Lezcano daniel.lezcano at oss.qualcomm.com
Mon Jul 27 07:39:16 PDT 2026


On 7/22/26 10:49, Can Peng wrote:
> imx_thermal_runtime_resume() enables the thermal clock before
> powering up the sensor and enabling measurements.
> 
> If either regmap_write() fails, the function returns with the clock
> still enabled. This leaves the clock enable count unbalanced after a
> failed runtime resume.
> 
> Disable the clock on those failure paths before returning the error.
> 
> Fixes: 4cf2ddf16e17 ("thermal/drivers/imx: Implement runtime PM support")
> Cc: stable at vger.kernel.org
> Signed-off-by: Can Peng <pengcan at kylinos.cn>
> ---

Applied, thanks



More information about the linux-arm-kernel mailing list