From: Ulf Hansson <ulf.hansson@oss.qualcomm.com>
To: Danilo Krummrich <dakr@kernel.org>,
Johan Hovold <johan@kernel.org>,
Saravana Kannan <saravanak@kernel.org>,
"Rafael J . Wysocki" <rafael@kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
driver-core@lists.linux.dev
Cc: Geert Uytterhoeven <geert@kernel.org>,
Ulf Hansson <ulf.hansson@oss.qualcomm.com>,
linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: [PATCH] driver core: fw_devlink: Print supplier's OF node for a pending sync_state
Date: Thu, 3 Dec 2026 18:04:35 +0100 [thread overview]
Message-ID: <20261203170435.483894-1-ulf.hansson@oss.qualcomm.com> (raw)
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
reply other threads:[~2026-12-03 17:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261203170435.483894-1-ulf.hansson@oss.qualcomm.com \
--to=ulf.hansson@oss.qualcomm.com \
--cc=dakr@kernel.org \
--cc=driver-core@lists.linux.dev \
--cc=geert@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=johan@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=rafael@kernel.org \
--cc=saravanak@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®