From: Jonathan Cameron <jic23@kernel.org>
To: Mark Brown <broonie@kernel.org>
Cc: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>,
linux-iio@vger.kernel.org
Subject: Re: [PATCH] iio: accel: BMC150 accel support
Date: Tue, 08 Jul 2014 19:03:38 +0100 [thread overview]
Message-ID: <53BC327A.3070000@kernel.org> (raw)
In-Reply-To: <c49bed5a-0737-4376-9429-c070834e71e9@email.android.com>
On 08/07/14 16:27, Jonathan Cameron wrote:
>
>
> On July 8, 2014 2:23:55 PM GMT+01:00, Mark Brown <broonie@kernel.org> wrote:
>> On Mon, Jul 07, 2014 at 05:13:56PM +0100, Jonathan Cameron wrote:
>>> On 07/07/14 15:36, Mark Brown wrote:
>>
>>>> With regulators the delays are handled transparently in the
>> framework -
>>>> by the time the functions return the operation should have
>> commpleted.
>>>> If there is a need to have a non-blocking interface we'll have to
>> add
>>>> this. The delays can be queried with _time() functions.
>>
>>> We are looking at a somewhat tangential question here...
>>
>> I don't think so...
>>
>>> Hence rather than picking a given power state (deep sleep or similar)
>>> we want the control to be on capture latency. Hence userspace
>>> can specify the 'worst case' latency it will accept and the
>>> device will hence enter the lowest power state, between samples,
>>> that it can without failing to meet the requirement.
>>>
>>> What I was wondering is whether there is anything similar
>>> elsewhere that you know of? For example, could we query a
>>> regulator driver to ask it how long it will take to start up
>>> a given output?
>>
>> ...hence my comment that "The delays can be queried with _time()
>> functions - you don't need to implement the delays but you can find out
>> what they will be.
> Ah sounds like I miss interpreted your response!
> Will look into the _time stuff.
>
Right, this will certainly act as a starting point, though will
be a little bit interesting to make it all work together.
Anyhow, no idea when or if anyone will have time to look at the
levels beyond the sensor drivers themselves.
Thanks Mark,
Jonathan
next prev parent reply other threads:[~2014-07-08 18:01 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-20 18:12 [PATCH] iio: accel: BMC150 accel support Srinivas Pandruvada
2014-06-22 14:23 ` Jonathan Cameron
2014-06-23 1:22 ` Srinivas Pandruvada
2014-06-29 11:12 ` Jonathan Cameron
2014-06-29 14:27 ` Srinivas Pandruvada
2014-06-29 14:42 ` Jonathan Cameron
2014-07-07 14:36 ` Mark Brown
2014-07-07 16:13 ` Jonathan Cameron
2014-07-08 13:23 ` Mark Brown
2014-07-08 15:27 ` Jonathan Cameron
2014-07-08 18:03 ` Jonathan Cameron [this message]
2014-06-29 20:43 ` Peter Meerwald
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=53BC327A.3070000@kernel.org \
--to=jic23@kernel.org \
--cc=broonie@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=srinivas.pandruvada@linux.intel.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;
as well as URLs for NNTP newsgroup(s).