Re: [PATCH 10/10] thermal/drivers/imx91: Use pm_runtime_resume_and_get() in imx91_tmu_change_mode()

From: Peng Fan (OSS)

Date: Fri Dec 04 2026 - 05:44:16 EST


On Thu, 3 Dec 2026 19:54:21 +0000 Lee Jones <lee@xxxxxxxxxx> wrote:

> When enabling the thermal zone, imx91_tmu_change_mode() calls
> asynchronous pm_runtime_get() and immediately writes TMU control
> registers before the device has resumed and enabled its clock. On
> error, it also returns without dropping the incremented runtime PM
> usage count.
>
> Use synchronous pm_runtime_resume_and_get() instead.
>
> Fixes: c411d8bf0699 ("thermal/drivers/imx91: Add support for i.MX91 thermal monitoring unit")
> Closes: https://sashiko.dev/#/bug/linux-c0418783-a24c-4ee1-a794-72b47eb4dfce
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Lee Jones <lee@xxxxxxxxxx>

Reviewed-by: Peng Fan <peng.fan@xxxxxxx>