Thread (3 messages) 3 messages, 2 authors, 16d ago

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

flat view

From: Leo Yan <leo.yan@arm.com>
Date: 2026-09-24 08:15:38
Also in: lkml

On Wed, Sep 23, 2026 at 08:18:56PM -0400, Yuho Choi wrote:
quoted hunk ↗ jump to hunk
@@ -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/ (local)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help