Commit 8b334442 authored by Sibi Sankar's avatar Sibi Sankar Committed by Andy Gross

soc: qcom: rpmpd: fixup rpmpd set performance state

Remoteproc q6v5-mss calls set_performance_state with INT_MAX on
rpmpd. This is currently ignored since it is greater than the
max supported state. Fixup rpmpd state to max if the required
state is greater than all the supported states.

Fixes: 075d3db8 ("soc: qcom: rpmpd: Add support for get/set performance state")
Reviewed-by: default avatarMarc Gonzalez <marc.w.gonzalez@free.fr>
Reviewed-by: default avatarVinod Koul <vkoul@kernel.org>
Reviewed-by: default avatarJeffrey Hugo <jhugo@codeaurora.org>
Signed-off-by: default avatarSibi Sankar <sibis@codeaurora.org>
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: default avatarAndy Gross <agross@kernel.org>
parent b157d73e
...@@ -226,7 +226,7 @@ static int rpmpd_set_performance(struct generic_pm_domain *domain, ...@@ -226,7 +226,7 @@ static int rpmpd_set_performance(struct generic_pm_domain *domain,
struct rpmpd *pd = domain_to_rpmpd(domain); struct rpmpd *pd = domain_to_rpmpd(domain);
if (state > MAX_RPMPD_STATE) if (state > MAX_RPMPD_STATE)
goto out; state = MAX_RPMPD_STATE;
mutex_lock(&rpmpd_lock); mutex_lock(&rpmpd_lock);
......
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