[PATCH v2] coresight: Check runtime PM resume result

Leo Yan leo.yan at arm.com
Thu Sep 24 01:15:22 PDT 2026


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@qti.qualcomm.com/



More information about the linux-arm-kernel mailing list