public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] driver core: fw_devlink: Don't warn in fw_devlink_dev_sync_state()
@ 2025-09-25 11:59 Ulf Hansson
  2025-09-25 12:08 ` Tomi Valkeinen
  2025-09-25 13:59 ` Diederik de Haas
  0 siblings, 2 replies; 10+ messages in thread
From: Ulf Hansson @ 2025-09-25 11:59 UTC (permalink / raw)
  To: Saravana Kannan, Rafael J . Wysocki, Greg Kroah-Hartman, linux-pm
  Cc: Geert Uytterhoeven, Nicolas Frattaroli, Heiko Stuebner,
	Sebastian Reichel, Sebin Francis, Diederik de Haas,
	Tomi Valkeinen, Jon Hunter, Ulf Hansson, linux-arm-kernel,
	linux-kernel

Due to the wider deployment of the ->sync_state() support, for PM domains
for example, we are receiving reports about the messages that are being
logged in fw_devlink_dev_sync_state(). In particular as they are at the
warning level, which doesn't seem correct.

Even if it certainly is useful to know that the ->sync_state() condition
could not be met, there may be nothing wrong with it. For example, a driver
may be built as module and are still waiting to be initialized/probed.

Ideally these messages should be at the debug level, but since the
->sync_state() feature is under an ongoing deployment and the prints
provides valuable information, let's move to the info level for now.

Cc: Saravana Kannan <saravanak@google.com>
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reported-by: Sebin Francis <sebin.francis@ti.com>
Reported-by: Diederik de Haas <didi.debian@cknow.org>
Reported-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
---
 drivers/base/core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/base/core.c b/drivers/base/core.c
index d22d6b23e758..97eab79c2f3b 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -1784,7 +1784,7 @@ 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_warn(sup, "sync_state() pending due to %s\n",
+		dev_info(sup, "sync_state() pending due to %s\n",
 			 dev_name(link->consumer));
 		return 0;
 	}
@@ -1792,7 +1792,7 @@ static int fw_devlink_dev_sync_state(struct device *dev, void *data)
 	if (!list_empty(&sup->links.defer_sync))
 		return 0;
 
-	dev_warn(sup, "Timed out. Forcing sync_state()\n");
+	dev_info(sup, "Timed out. Forcing sync_state()\n");
 	sup->state_synced = true;
 	get_device(sup);
 	list_add_tail(&sup->links.defer_sync, data);
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2025-10-03 18:24 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-25 11:59 [PATCH] driver core: fw_devlink: Don't warn in fw_devlink_dev_sync_state() Ulf Hansson
2025-09-25 12:08 ` Tomi Valkeinen
2025-09-25 13:20   ` Ulf Hansson
2025-09-25 13:59 ` Diederik de Haas
2025-09-25 14:26   ` Ulf Hansson
2025-09-25 17:52     ` Diederik de Haas
2025-09-25 21:48       ` Saravana Kannan
2025-09-26 12:05         ` Ulf Hansson
2025-09-26 17:08           ` Rafael J. Wysocki
2025-10-03 18:24   ` Diederik de Haas

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