[PATCH v2 2/2] coresight: tnoc: Fix clock refcount imbalance on platform remove

Leo Yan leo.yan at arm.com
Thu Jul 9 08:27:39 PDT 2026


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 at oss.qualcomm.com>

Reviewed-by: Leo Yan <leo.yan at arm.com>



More information about the linux-arm-kernel mailing list