Re: [PATCH] driver core: fw_devlink: Print supplier's OF node for a pending sync_state
From: Saravana Kannan
Date: Fri Dec 04 2026 - 02:39:29 EST
On Thu, Dec 3, 2026 at 9:04 AM Ulf Hansson <ulf.hansson@xxxxxxxxxxxxxxxx> wrote:
>
> 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@xxxxxxxxxxxxxxxx>
> ---
> 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));
Can you please check for fwnode instead and use the corresponding %p
printk format?
Once that's fixed:
Reviewed-by: Saravana Kannan <saravanak@xxxxxxxxxx>
Thanks,
Saravana
> + else
> + dev_info(sup, "sync_state() pending due to %s\n",
> + dev_name(link->consumer));
> return 0;
> }
>
> --
> 2.43.0
>