Skip to content

Commit 349384c

Browse files
Fabio Estevamgregkh
authored andcommitted
PM / OPP: Move error message to debug level
[ Upstream commit 035ed07 ] On some i.MX6 platforms which do not have speed grading check, opp table will not be created in platform code, so cpufreq driver prints the following error message: cpu cpu0: dev_pm_opp_get_opp_count: OPP table not found (-19) However, this is not really an error in this case because the imx6q-cpufreq driver first calls dev_pm_opp_get_opp_count() and if it fails, it means that platform code does not provide OPP and then dev_pm_opp_of_add_table() will be called. In order to avoid such confusing error message, move it to debug level. It is up to the caller of dev_pm_opp_get_opp_count() to check its return value and decide if it will print an error or not. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 7af9f9c commit 349384c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/base/power/opp/core.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ int dev_pm_opp_get_opp_count(struct device *dev)
296296
opp_table = _find_opp_table(dev);
297297
if (IS_ERR(opp_table)) {
298298
count = PTR_ERR(opp_table);
299-
dev_err(dev, "%s: OPP table not found (%d)\n",
299+
dev_dbg(dev, "%s: OPP table not found (%d)\n",
300300
__func__, count);
301301
return count;
302302
}

0 commit comments

Comments
 (0)