mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] driver core: fw_devlink: Print supplier's OF node for a pending sync_state
@ 2026-12-03 17:04 Ulf Hansson
  0 siblings, 0 replies; only message in thread
From: Ulf Hansson @ 2026-12-03 17:04 UTC (permalink / raw)
  To: Danilo Krummrich, Johan Hovold, Saravana Kannan,
	Rafael J . Wysocki, Greg Kroah-Hartman, driver-core
  Cc: Geert Uytterhoeven, Ulf Hansson, linux-pm, linux-arm-kernel,
	linux-kernel

The current message that is printed when a supplier is waiting for a
pending consumer may in some cases be misleading. More precisely, when a
supplier represents multiple providers that share the same OF node, one
expects that it's the provider's device name that is printed, rather than
the supplier's device name.

Unfortunately fixing this accordingly isn't straightforward, as we don't
have access to the provider's device at this point. Instead, let's improve
the situation by printing the name and the unit address for the supplier's
OF node, as it's a better indication for where the consumer belongs to.

Signed-off-by: Ulf Hansson <ulf.hansson@oss.qualcomm.com>
---
 drivers/base/core.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/drivers/base/core.c b/drivers/base/core.c
index 44f79f427b6b..4737a6b2de86 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -1856,8 +1856,12 @@ static int fw_devlink_dev_sync_state(struct device *dev, void *data)
 		return 0;
 
 	if (fw_devlink_sync_state == FW_DEVLINK_SYNC_STATE_STRICT) {
-		dev_info(sup, "sync_state() pending due to %s\n",
-			 dev_name(link->consumer));
+		if (sup->of_node)
+			pr_info("%pOFP: sync_state() pending due to %s\n",
+				sup->of_node, dev_name(link->consumer));
+		else
+			dev_info(sup, "sync_state() pending due to %s\n",
+				 dev_name(link->consumer));
 		return 0;
 	}
 
-- 
2.43.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-12-03 17:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-03 17:04 [PATCH] driver core: fw_devlink: Print supplier's OF node for a pending sync_state Ulf Hansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®