Re: [PATCH 07/10] thermal/drivers/imx91: Acquire runtime PM reference in imx91_tmu_get_temp()

From: Peng Fan (OSS)

Date: Fri Dec 04 2026 - 05:43:38 EST


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

> The thermal core allows get_temp() to be called via sysfs even when the
> thermal zone has been disabled and imx91_tmu_change_mode() has dropped
> the runtime PM reference, gating the TMU clock. Reading IMX91_TMU_DATA0
> in imx91_tmu_get_temp() while the clock is disabled causes an unclocked
> register access.
>
> Wrap the register read in imx91_tmu_get_temp() with
> pm_runtime_resume_and_get() and pm_runtime_put().
>
> Fixes: c411d8bf0699 ("thermal/drivers/imx91: Add support for i.MX91 thermal monitoring unit")
> Closes: https://sashiko.dev/#/bug/linux-366503cb-0dfd-43b0-9c97-f75af5382e66
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Lee Jones <lee@xxxxxxxxxx>

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