Patch "PM / devfreq: Mute warning on governor PROBE_DEFER" has been added to the 5.15-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    PM / devfreq: Mute warning on governor PROBE_DEFER

to the 5.15-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     pm-devfreq-mute-warning-on-governor-probe_defer.patch
and it can be found in the queue-5.15 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit c9afa575b61ed545eddab28966f19b9fc329906c
Author: Christian Marangi <ansuelsmth@xxxxxxxxx>
Date:   Wed Jun 15 01:09:50 2022 +0200

    PM / devfreq: Mute warning on governor PROBE_DEFER
    
    [ Upstream commit e52b045fe07d7874474665c843befa7521853234 ]
    
    Don't print warning when a governor PROBE_DEFER as it's not a real
    GOV_START fail.
    
    Fixes: a03dacb0316f ("PM / devfreq: Add cpu based scaling support to passive governor")
    Signed-off-by: Christian 'Ansuel' Marangi <ansuelsmth@xxxxxxxxx>
    Signed-off-by: Chanwoo Choi <cw00.choi@xxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c
index 3fa275ba8cbd..6af8200992a3 100644
--- a/drivers/devfreq/devfreq.c
+++ b/drivers/devfreq/devfreq.c
@@ -951,8 +951,9 @@ struct devfreq *devfreq_add_device(struct device *dev,
 	err = devfreq->governor->event_handler(devfreq, DEVFREQ_GOV_START,
 						NULL);
 	if (err) {
-		dev_err(dev, "%s: Unable to start governor for the device\n",
-			__func__);
+		dev_err_probe(dev, err,
+			"%s: Unable to start governor for the device\n",
+			 __func__);
 		goto err_init;
 	}
 	create_sysfs_files(devfreq, devfreq->governor);




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux