Re: [PATCH] iio: hid-sensor-hub: Implement batch mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux