Re: [PATCH v2] coresight: Check runtime PM resume result

From: Leo Yan

Date: Thu Sep 24 2026 - 04:17:13 EST


On Wed, Sep 23, 2026 at 08:18:56PM -0400, Yuho Choi wrote:

> @@ -843,7 +843,11 @@ static bool coresight_get_ref(struct coresight_device *csdev)
> goto err_module;
>
> /* Make sure the device is powered on */
> - pm_runtime_get_sync(parent);
> + if (pm_runtime_resume_and_get(parent) < 0) {
> + module_put(drv->owner);
> + goto err_module;
> + }
> +

There is already a patch that does something similar and fixes the same
errors across the CoreSight folder. See:

https://lore.kernel.org/linux-arm-kernel/20260911-b4-coresight-runtime-pm-failures-v1-1-acdf49756e11@xxxxxxxxxxxxxxxx/