linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Georgi Djakov <georgi.djakov@linaro.org>
To: Stephen Boyd <sboyd@codeaurora.org>, Mark Brown <broonie@kernel.org>
Cc: Lina Iyer <lina.iyer@linaro.org>,
	lgirdwood@gmail.com, andy.gross@linaro.org,
	linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org
Subject: Re: [PATCH v4] regulator: qcom-saw: Add support for SAW regulators
Date: Thu, 11 Feb 2016 12:17:11 +0200	[thread overview]
Message-ID: <56BC5FA7.5020108@linaro.org> (raw)
In-Reply-To: <20160210224628.GK30978@codeaurora.org>

On 02/11/2016 12:46 AM, Stephen Boyd wrote:
> On 02/10, Mark Brown wrote:
>> On Wed, Feb 10, 2016 at 11:04:36AM -0800, Stephen Boyd wrote:
>>
[..]
>>> I'm not really excited about the binding we have here either.
>>> We're going to have two places in DT where we've created a
>>> regulator for the same physical regulator. One will be a child of
>>> the SAW node on the MMIO bus, and another will be a child of the
>>> PMIC on the SPMI/SSBI bus. In the end, they're both the same
>>> regulator, so any constraints on one node will need to be applied
>>> to the other node as well.
>>
>> Are you saying that this is a problem with the driver that just got
>> merged?  We got to v4 before I applied the driver...  My understanding
>> was that this is a driver for a new regulator type not a duplicate
>> interface for existing regulator.
> 
[..]
> 
> Now this is all pretty much useless hardware if all we care about
> is to set voltages from software. Obviously we could just use the
> SPMI regulator driver that we already have. It's written for the
> bus that the hardware is actually on and it works!
> 

8064 uses SSBI instead of SPMI and we currently do not have any
existing regulator support upstream yet. So this driver is not
duplicating any existing regulator. We should decide whether to
keep this driver or to replace it with a new ssbi-regulator driver
and bindings instead, where we can avoid the split-bus fun at
least to some extent. Maybe the latter is the better option?

> The problem there is that the SAW register is also used during
> idle/suspend when software isn't running. The CPU power down
> sequence usually turns off the regulator, but it may also change
> the voltage to something lower, depending on how deep of
> idle/suspend we're trying to achieve. This is all done without
> software intervention. When the CPU wakes up due to some
> interrupt, the SPM runs the CPU power on sequence which takes
> whatever is in the SAW register and sends it off to the PMIC to
> restore the CPU voltage. Again, this is all hardware doing this.

This might be a problem. I guess we can't change this hardware
behaviour?

Anyway, thanks for the detailed feedback. This is very helpful,
as I have very limited information on this hardware.

BR,
Georgi

  reply	other threads:[~2016-02-11 10:17 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-09 13:12 [PATCH v4] regulator: qcom-saw: Add support for SAW regulators Georgi Djakov
2016-02-09 22:21 ` Lina Iyer
2016-02-10 10:13   ` Mark Brown
2016-02-10 16:42     ` Lina Iyer
2016-02-10 18:54       ` Mark Brown
2016-02-10 12:52   ` Georgi Djakov
2016-02-10 18:36     ` Stephen Boyd
2016-02-10 18:43       ` Mark Brown
2016-02-10 19:04         ` Stephen Boyd
2016-02-10 19:21           ` Mark Brown
2016-02-10 22:46             ` Stephen Boyd
2016-02-11 10:17               ` Georgi Djakov [this message]
2016-02-12  0:17                 ` Stephen Boyd
2016-02-12 23:03                   ` Mark Brown
2016-02-19 16:07 ` Mark Brown

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=56BC5FA7.5020108@linaro.org \
    --to=georgi.djakov@linaro.org \
    --cc=andy.gross@linaro.org \
    --cc=broonie@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=lina.iyer@linaro.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sboyd@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;
as well as URLs for NNTP newsgroup(s).