lkml.org 
[lkml]   [2021]   [Oct]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[RFC PATCH 4/9] opp: core: Don't warn if required OPP device does not exist
Date
When required-opps is used in CPU OPP tables, there is no parent power
domain to drive it. Squelch this error, to allow a clock driver to
handle this directly instead.

Signed-off-by: Hector Martin <marcan@marcan.st>
---
drivers/opp/core.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/opp/core.c b/drivers/opp/core.c
index 04b4691a8aac..89e616721f70 100644
--- a/drivers/opp/core.c
+++ b/drivers/opp/core.c
@@ -873,12 +873,13 @@ static int _set_required_opp(struct device *dev, struct device *pd_dev,
return 0;

ret = dev_pm_genpd_set_performance_state(pd_dev, pstate);
- if (ret) {
+ if (ret && ret != -ENODEV) {
dev_err(dev, "Failed to set performance rate of %s: %d (%d)\n",
dev_name(pd_dev), pstate, ret);
+ return ret;
}

- return ret;
+ return 0;
}

/* This is only called for PM domain for now */
--
2.33.0
\
 
 \ /
  Last update: 2021-10-11 18:58    [W:0.182 / U:0.688 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site