Re: [PATCH v2 2/2] coresight: tnoc: Fix clock refcount imbalance on platform remove
From: Leo Yan
Date: Thu Jul 09 2026 - 11:45:06 EST
On Thu, Jul 02, 2026 at 04:54:20PM +0800, Jie Gan wrote:
[...]
> Resume the device with pm_runtime_get_sync() before tearing it down so
> the clock is enabled again and balances the devm-managed disable. Then
> pm_runtime_set_suspended() and pm_runtime_put_noidle() leave the device
> in a coherent runtime PM state (suspended, usage count balanced) once
> the devm action has disabled the clock.
>
> Fixes: 1abc1b212eff ("coresight: Appropriately disable programming clocks")
> Signed-off-by: Jie Gan <jie.gan@xxxxxxxxxxxxxxxx>
Reviewed-by: Leo Yan <leo.yan@xxxxxxx>