Commit 0cb19e50 authored by Ulf Hansson's avatar Ulf Hansson

pmdomain: arm: Avoid polling for scmi_perf_domain

It was a mistake to prefer polling based mode when setting a performance
level for a domain. Let's instead rely on the protocol to decide what is
best and thus avoid polling when possible.
Reported-by: default avatarNikunj Kela <nkela@quicinc.com>
Fixes: 2af23ceb ("pmdomain: arm: Add the SCMI performance domain")
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Reviewed-by: default avatarSudeep Holla <sudeep.holla@arm.com>
Link: https://lore.kernel.org/r/20231127135033.136442-1-ulf.hansson@linaro.org
parent 98b1cc82
...@@ -35,7 +35,7 @@ scmi_pd_set_perf_state(struct generic_pm_domain *genpd, unsigned int state) ...@@ -35,7 +35,7 @@ scmi_pd_set_perf_state(struct generic_pm_domain *genpd, unsigned int state)
if (!state) if (!state)
return -EINVAL; return -EINVAL;
ret = pd->perf_ops->level_set(pd->ph, pd->domain_id, state, true); ret = pd->perf_ops->level_set(pd->ph, pd->domain_id, state, false);
if (ret) if (ret)
dev_warn(&genpd->dev, "Failed with %d when trying to set %d perf level", dev_warn(&genpd->dev, "Failed with %d when trying to set %d perf level",
ret, state); ret, state);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment