All of lore.kernel.org
 help / color / mirror / Atom feed
From: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
To: Jonathan Cameron <jic23@kernel.org>, jikos@kernel.org
Cc: linux-iio@vger.kernel.org
Subject: Re: [PATCH] iio: hid-sensor-hub: Implement batch mode
Date: Sun, 02 Apr 2017 09:27:34 -0700	[thread overview]
Message-ID: <1491150454.7991.1.camel@linux.intel.com> (raw)
In-Reply-To: <3c5824ca-e56b-f1c2-2fda-42f4b4bafa61@kernel.org>

On Sun, 2017-04-02 at 11:59 +0100, Jonathan Cameron wrote:
> On 28/03/17 22:55, Srinivas Pandruvada wrote:
> > HID sensor hubs using Integrated Senor Hub (ISH) has added
> > capability to
> > support batch mode. This allows host processor to go to sleep for
> > extended
> > duration, while the sensor hub is storing samples in its internal
> > buffers.
> > 

[...]

> > hid_sensor_get_report_latency(iio_trigger_get_drvdata(indio_dev-
> > >trig));
> > +	if (latency < 0)
> > +		return latency;
> > +
> > +	return sprintf(buf, "%d\n", latency / 1000);
> 
> Seems to me that you'll be wanting latencies of sub one second
> sometimes...
> hence I'd make this fixed point.  The core IIO functions should be
> available
> to help with conversion if you want to use them.

Correct. We want latency less than 1 second too, which is granularity
for poll() system call.
So we should be in this case should be able to enter 0.5 for 500
milliseconds using hwfifo_timeout. 

Thanks,
Srinivas

      reply	other threads:[~2017-04-02 16:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-28 21:55 [PATCH] iio: hid-sensor-hub: Implement batch mode Srinivas Pandruvada
2017-04-02 10:59 ` Jonathan Cameron
2017-04-02 16:27   ` Srinivas Pandruvada [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=1491150454.7991.1.camel@linux.intel.com \
    --to=srinivas.pandruvada@linux.intel.com \
    --cc=jic23@kernel.org \
    --cc=jikos@kernel.org \
    --cc=linux-iio@vger.kernel.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 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.