From: henryc.chen@mediatek.com (Henry Chen)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC PATCH 4/5] PM / AVS: thermal: MT8173: Introduce support for SVS engine
Date: Fri, 19 Feb 2016 13:08:02 +0800 [thread overview]
Message-ID: <1455858482.17104.13.camel@mtksdaap41> (raw)
In-Reply-To: <20160218030049.GA8780@gmail.com>
On Thu, 2016-02-18 at 11:00 +0800, Pi-Cheng Chen wrote:
> > > + vboot = regulator_get_voltage(svs->reg) / 1000;
> > > + if (mvolt_to_config(vboot) !=
> > > + mvolt_to_config(svs_bank_cfgs[i].vboot)) {
> > > + dev_err(svs->dev, "Vboot value mismatch!\n");
> > > + ret = -EINVAL;
> > > + break;
> > > + }
> > > +
> > > + ret = regulator_set_mode(svs->reg, REGULATOR_MODE_FAST);
> > > + if (ret) {
> > > + dev_err(svs->dev,
> > > + "Failed to set regulator in PWM mode\n");
> > > + ret = -EINVAL;
> > > + break;
> > > + }
> >
> > Shouldn't this be best effort?
> > If we can't set the regulator to fast mode, can we continue anyway?
> >
>
> AFAIK, we need to set the regulator to fast mode to get stable voltage as
> possible. I am sure about the details.
>
> @Henry,
> Would you please comment it?
Hi,
Yes, as you said, PTPOD need the more precisely voltage as possible when
driver initialize, there has two mode in mt6397: pwm/auto mode, the pwm
mode which can get the more stable Vout than auto mode.
Thanks,
Henry
next prev parent reply other threads:[~2016-02-19 5:08 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-22 8:40 [RFC PATCH 0/5] Add support for Mediatek SVS engine Pi-Cheng Chen
2016-01-22 8:40 ` [RFC PATCH 1/5] thermal: MT8173: Replace mutex with spinlock Pi-Cheng Chen
2016-01-22 8:40 ` [RFC PATCH 2/5] cpufreq: mt8173: Remove platform device registration code Pi-Cheng Chen
2016-01-22 8:40 ` [RFC PATCH 3/5] dt-bindings: thermal: Add optional properties of Mediatek thermal controller Pi-Cheng Chen
2016-01-22 22:31 ` Rob Herring
2016-01-25 0:21 ` Pi-Cheng Chen
2016-01-22 8:40 ` [RFC PATCH 4/5] PM / AVS: thermal: MT8173: Introduce support for SVS engine Pi-Cheng Chen
2016-01-22 23:38 ` Daniel Kurtz
2016-02-18 3:00 ` Pi-Cheng Chen
2016-02-19 5:08 ` Henry Chen [this message]
2016-02-19 5:31 ` Henry Chen
2016-01-22 8:40 ` [PATCH 5/5] cpufreq: mt8173: Add notifier to handle OPP voltage adjustment Pi-Cheng Chen
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=1455858482.17104.13.camel@mtksdaap41 \
--to=henryc.chen@mediatek.com \
--cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).