From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: Linus Walleij <linus.walleij@stericsson.com>,
Liam Girdwood <lrg@slimlogic.co.uk>,
linux-kernel@vger.kernel.org, Lee Jones <lee.jones@linaro.org>
Subject: Re: [PATCH 1/4] regulator: add set_voltage_time[_sel] infrastructure
Date: Fri, 11 Mar 2011 15:20:37 +0000 [thread overview]
Message-ID: <20110311152037.GL1760@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <AANLkTim+woyefRXw83RxEDFLmbxHKc25MPa7XQB2_fxE@mail.gmail.com>
On Fri, Mar 11, 2011 at 03:45:39PM +0100, Linus Walleij wrote:
> On Fri, Mar 11, 2011 at 1:25 PM, Mark Brown
> + /*
> + * If we can't obtain the old selector there is not enough
> + * info to call set_voltage_time_sel().
> + */
> + if (rdev->desc->ops->set_voltage_time_sel &&
> + rdev->desc->ops->get_voltage_sel) {
> + unsigned int old_selector = 0;
> +
> + ret = rdev->desc->ops->get_voltage_sel(rdev);
> + if (ret < 0)
> + return ret;
> + old_selector = ret;
> + delay = rdev->desc->ops->set_voltage_time_sel(rdev,
> + old_selector, selector);
> + }
> +
Hrm, right. This means we can only support this for selector based
get_voltage(). That's probably fine, I think.
> > I also think we should be exporting this to consumers as things like
> > cpufreq are interested in the latency for voltage changes.
> Can we take that when we have a consumer that wants it? Looking
> at it it becomes rather complex, since consumers don't know the
> core-internal selectors, just discrete enumerated voltages, so these
> have to be mapped back to selectors etc, that's pretty much ovehead
> code that sits unused.
> (If you insist, I will implement it.)
Consumers know about the set of selectors as they are used to enumerate
the supported voltages via list_voltage(). An existing cpufreq driver
such as the s3c64xx one would be able to take advantage of this very
quickly.
prev parent reply other threads:[~2011-03-11 15:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-11 10:54 [PATCH 1/4] regulator: add set_voltage_time[_sel] infrastructure Linus Walleij
2011-03-11 12:25 ` Mark Brown
2011-03-11 14:45 ` Linus Walleij
2011-03-11 15:20 ` Mark Brown [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=20110311152037.GL1760@opensource.wolfsonmicro.com \
--to=broonie@opensource.wolfsonmicro.com \
--cc=lee.jones@linaro.org \
--cc=linus.walleij@linaro.org \
--cc=linus.walleij@stericsson.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lrg@slimlogic.co.uk \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.