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

From: Daniel Lezcano

Date: Mon Jul 27 2026 - 10:49:32 EST


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@xxxxxxxxxxxxxxx
Signed-off-by: Can Peng <pengcan@xxxxxxxxxx>
---

Applied, thanks