From: Rex-BC Chen <rex-bc.chen@mediatek.com>
To: Yang Yingliang <yangyingliang@huawei.com>,
<linux-kernel@vger.kernel.org>,
<linux-mediatek@lists.infradead.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-pm@vger.kernel.org>
Cc: <jia-wei.chang@mediatek.com>,
<angelogioacchino.delregno@collabora.com>, <khilman@baylibre.com>,
<viresh.kumar@linaro.org>
Subject: Re: [PATCH -next] cpufreq: mediatek: fix error return code in mtk_cpu_dvfs_info_init()
Date: Wed, 18 May 2022 09:36:26 +0800 [thread overview]
Message-ID: <2b46032a99e6f8994d402ebbf34d9174135993c4.camel@mediatek.com> (raw)
In-Reply-To: <20220517133450.2266243-1-yangyingliang@huawei.com>
On Tue, 2022-05-17 at 21:34 +0800, Yang Yingliang wrote:
> If regulator_get_voltage() fails, it should return the error code in
> mtk_cpu_dvfs_info_init().
>
> Fixes: 0daa47325bae ("cpufreq: mediatek: Link CCI device to CPU")
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
> ---
> drivers/cpufreq/mediatek-cpufreq.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/cpufreq/mediatek-cpufreq.c
> b/drivers/cpufreq/mediatek-cpufreq.c
> index 37a1eb20f5ba..3a2be4552020 100644
> --- a/drivers/cpufreq/mediatek-cpufreq.c
> +++ b/drivers/cpufreq/mediatek-cpufreq.c
> @@ -474,6 +474,7 @@ static int mtk_cpu_dvfs_info_init(struct
> mtk_cpu_dvfs_info *info, int cpu)
> if (info->soc_data->ccifreq_supported) {
> info->vproc_on_boot = regulator_get_voltage(info-
> >proc_reg);
> if (info->vproc_on_boot < 0) {
> + ret = info->vproc_on_boot;
> dev_err(info->cpu_dev,
> "invalid Vproc value: %d\n", info-
> >vproc_on_boot);
> goto out_disable_inter_clock;
Thanks for fix this!
Reviewed-by: Rex-BC Chen <rex-bc.chen@mediatek.com>
next prev parent reply other threads:[~2022-05-18 1:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-17 13:34 Yang Yingliang
2022-05-17 13:33 ` AngeloGioacchino Del Regno
2022-05-18 1:36 ` Rex-BC Chen [this message]
2022-06-28 8:09 ` Viresh Kumar
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=2b46032a99e6f8994d402ebbf34d9174135993c4.camel@mediatek.com \
--to=rex-bc.chen@mediatek.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=jia-wei.chang@mediatek.com \
--cc=khilman@baylibre.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-pm@vger.kernel.org \
--cc=viresh.kumar@linaro.org \
--cc=yangyingliang@huawei.com \
/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
all inboxes | Powered by JetHome®