[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <160032722036.4188128.15261798942473063496@swboyd.mtv.corp.google.com>
Date: Thu, 17 Sep 2020 00:20:20 -0700
From: Stephen Boyd <swboyd@...omium.org>
To: Mansur Alisha Shaik <mansur@...eaurora.org>,
linux-media@...r.kernel.org, stanimir.varbanov@...aro.org
Cc: linux-kernel@...r.kernel.org, linux-arm-msm@...r.kernel.org,
vgarodia@...eaurora.org,
Mansur Alisha Shaik <mansur@...eaurora.org>
Subject: Re: [RESEND v2 2/4] venus: core: vote for video-mem path
Quoting Mansur Alisha Shaik (2020-09-16 18:26:01)
> diff --git a/drivers/media/platform/qcom/venus/core.c b/drivers/media/platform/qcom/venus/core.c
> index 52a3886..064b6c8 100644
> --- a/drivers/media/platform/qcom/venus/core.c
> +++ b/drivers/media/platform/qcom/venus/core.c
> @@ -363,8 +363,16 @@ static __maybe_unused int venus_runtime_suspend(struct device *dev)
>
> ret = icc_set_bw(core->cpucfg_path, 0, 0);
> if (ret)
> - return ret;
> + goto err_poweron_core;
> +
> + ret = icc_set_bw(core->video_path, 0, 0);
> + if (ret)
> + goto err_poweron_core;
> +
> + return ret;
>
> +err_poweron_core:
> + pm_ops->core_power(dev, POWER_ON);
Don't we need to put back the bandwidth from before suspend was entered
if the video_path fails?
> return ret;
> }
>
Powered by blists - more mailing lists