From: Sibi Sankar <sibis@codeaurora.org>
To: myungjoo.ham@samsung.com
Cc: Chanwoo Choi <cw00.choi@samsung.com>,
Kyungmin Park <kyungmin.park@samsung.com>,
linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-msm-owner@vger.kernel.org,
Saravana Kannan <skannan@codeaurora.org>
Subject: Re: [PATCH v5] PM / devfreq: Restart previous governor if new governor fails to start
Date: Wed, 13 Mar 2019 11:31:01 +0530 [thread overview]
Message-ID: <2b78582a74ae7a17ed2f27187f3f32f4@codeaurora.org> (raw)
In-Reply-To: <20190312071714epcms1p20e78a537f8cb0d7d04e4fd077916fd51@epcms1p2>
On 2019-03-12 12:47, MyungJoo Ham wrote:
>> From: Saravana Kannan <skannan@codeaurora.org>
>>
>> If the new governor fails to start, switch back to old governor so
>> that the
>> devfreq state is not left in some weird limbo.
>>
>> [Mjungjoo: assume fatal on revert failure and set df->governor to
>> NULL]
>> Signed-off-by: Sibi Sankar <sibis@codeaurora.org>
>> Signed-off-by: Saravana Kannan <skannan@codeaurora.org>
>> Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
>
> I'll modify WARN->ERROR for the case when it's fatal:
Sure, thanks.
>
>> + if (ret) {
>> + dev_warn(dev,
>> + "%s: reverting to Governor %s failed (%d)\n",
>> + __func__, df->governor_name, ret);
>> + df->governor = NULL;
>> + }
>
> Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>
>
>
>> ---
>> V5:
>> * assume fatal on revert failure and set df->governor to NULL
>>
>> V4:
>> * Removed prev_governor check.
>>
>> V3:
>> * Fix NULL deref for real this time.
>> * Addressed some style preferences.
>>
>> V2:
>> * Fixed typo in commit text
>> * Fixed potential NULL deref
>>
>> drivers/devfreq/devfreq.c | 16 ++++++++++++++--
>> 1 file changed, 14 insertions(+), 2 deletions(-)
>>
--
-- Sibi Sankar --
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project.
prev parent reply other threads:[~2019-03-13 6:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20190311100759epcas5p41fc634cd67a99b39cd25c4129e489c4c@epcms1p2>
2019-03-11 10:06 ` [PATCH v5] PM / devfreq: Restart previous governor if new governor fails to start Sibi Sankar
2019-03-12 7:17 ` MyungJoo Ham
2019-03-13 6:01 ` Sibi Sankar [this message]
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=2b78582a74ae7a17ed2f27187f3f32f4@codeaurora.org \
--to=sibis@codeaurora.org \
--cc=cw00.choi@samsung.com \
--cc=kyungmin.park@samsung.com \
--cc=linux-arm-msm-owner@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=myungjoo.ham@samsung.com \
--cc=skannan@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