Skip to contentSkip to conversation

PM / devfreq: Reduce log severity for informative message

PATCH In review Tzung-Bi Shih 2 participants 2 messages Dec 14, 2021 – Dec 16, 2021 Device frequency (devfreq)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PM / devfreq: Reduce log severity for informative message

Suppose devfreq_update_status() failure in devfreq_set_target() is not a critical error, reduces the log severity.

---
 drivers/devfreq/devfreq.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/devfreq/devfreq.c +2 -2
index 7906220d025c..a525a609dfc6 100644
@@ -382,8 +382,8 @@ static int devfreq_set_target(struct devfreq *devfreq, unsigned long new_freq,
 	devfreq_notify_transition(devfreq, &freqs, DEVFREQ_POSTCHANGE);
 
 	if (devfreq_update_status(devfreq, new_freq))
-		dev_err(&devfreq->dev,
-			"Couldn't update frequency transition information.\n");
+		dev_warn(&devfreq->dev,
+			 "Couldn't update frequency transition information.\n");
 
 	devfreq->previous_freq = new_freq;
 
Signature · 1 line
2.34.1.173.g76aa8bc2d0-goog
maintainer
#1 lore raw
Quoted 14 lines · Tzung-Bi Shih

Suppose devfreq_update_status() failure in devfreq_set_target() is not a critical error, reduces the log severity.

---
 drivers/devfreq/devfreq.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/devfreq/devfreq.c +0 -0
index 7906220d025c..a525a609dfc6 100644

drivers/devfreq/devfreq.c static int devfreq_set_target(struct devfreq *devfreq, unsigned long new_freq, · line 389

Quoted 10 lines
drivers/devfreq/devfreq.c +2 -2
@@ -382,8 +382,8 @@ static int devfreq_set_target(struct devfreq *devfreq, unsigned long new_freq,
 	devfreq_notify_transition(devfreq, &freqs, DEVFREQ_POSTCHANGE);
 
 	if (devfreq_update_status(devfreq, new_freq))
-		dev_err(&devfreq->dev,
-			"Couldn't update frequency transition information.\n");
+		dev_warn(&devfreq->dev,
+			 "Couldn't update frequency transition information.\n");
 
 	devfreq->previous_freq = new_freq;
 

Applied it.

Signature · 3 lines
Best Regards,
Chanwoo Choi
Samsung Electronics