public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: mansur@codeaurora.org
To: Stephen Boyd <swboyd@chromium.org>
Cc: linux-media@vger.kernel.org, stanimir.varbanov@linaro.org,
	linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	vgarodia@codeaurora.org
Subject: Re: [PATCH 1/2] venus: core: change clk enable and disable order in resume and suspend
Date: Thu, 17 Sep 2020 06:37:44 +0530	[thread overview]
Message-ID: <4865efd5e746d2e94cc4680a47a30a0d@codeaurora.org> (raw)
In-Reply-To: <159959010893.454335.18221321331314189759@swboyd.mtv.corp.google.com>

> On 2020-09-09 00:05, Stephen Boyd wrote:
>> Quoting Mansur Alisha Shaik (2020-09-07 20:44:05)
>>> Currently video driver is voting after clk enable and un voting
>>> before clk disable. Basically we should vote before clk enable
>>> and un vote after clk disable.
>>> 
>>> Corrected this by changing the order of clk enable and clk disable.
>>> 
>>> Signed-off-by: Mansur Alisha Shaik <mansur@codeaurora.org>
>>> ---
>> 
>> Any Fixes: tag?
Added Fixes tag
>> 
>>>  drivers/media/platform/qcom/venus/core.c | 17 ++++++++++-------
>>>  1 file changed, 10 insertions(+), 7 deletions(-)
>>> 
>>> diff --git a/drivers/media/platform/qcom/venus/core.c 
>>> b/drivers/media/platform/qcom/venus/core.c
>>> index c5af428..4857bbd 100644
>>> --- a/drivers/media/platform/qcom/venus/core.c
>>> +++ b/drivers/media/platform/qcom/venus/core.c
>>> @@ -363,13 +363,16 @@ static __maybe_unused int 
>>> venus_runtime_suspend(struct device *dev)
>>>         if (ret)
>>>                 return ret;
>>> 
>>> +       if (pm_ops->core_power) {
>>> +               ret = pm_ops->core_power(dev, POWER_OFF);
>>> +               if (ret)
>>> +                       return ret;
>>> +       }
>>> +
>>>         ret = icc_set_bw(core->cpucfg_path, 0, 0);
>>>         if (ret)
>>>                 return ret;
>> 
>> Shouldn't we power it back up if this fails during suspend?
On icc_set_bw() failure, we are just power it and return.
Addressed these comments and posted new version
https://lore.kernel.org/patchwork/project/lkml/list/?series=463224
>> 
>>> 
>>> -       if (pm_ops->core_power)
>>> -               ret = pm_ops->core_power(dev, POWER_OFF);
>>> -
>>>         return ret;
>>>  }
>>> 

  reply	other threads:[~2020-09-17  1:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-08  3:44 [PATCH 1/2] venus: core: change clk enable and disable order in resume and suspend Mansur Alisha Shaik
2020-09-08 18:35 ` Stephen Boyd
2020-09-17  1:07   ` mansur [this message]
2020-09-17  7:18     ` Stephen Boyd

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4865efd5e746d2e94cc4680a47a30a0d@codeaurora.org \
    --to=mansur@codeaurora.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=stanimir.varbanov@linaro.org \
    --cc=swboyd@chromium.org \
    --cc=vgarodia@codeaurora.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox