[PATCH] driver core: fw_devlink: Print supplier's OF node for a pending sync_state

Ulf Hansson ulf.hansson at oss.qualcomm.com
Thu Dec 3 09:04:35 PST 2026


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 at 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




More information about the linux-arm-kernel mailing list