Re: [PATCH v2 10/18] platform: chrome: sensorhub: Add FIFO support

2019-10-22 Thread Jonathan Cameron
... > > > + * @sensor_hub : Sensor Hub object > > > + */ > > > +int cros_ec_sensorhub_ring_add(struct cros_ec_sensorhub *sensorhub) > > > +{ > > > + struct cros_ec_dev *ec = sensorhub->ec; > > > + int ret; > > > + > > > + /* Retrieve FIFO information */ > > > +

Re: [PATCH v2 10/18] platform: chrome: sensorhub: Add FIFO support

2019-10-21 Thread Gwendal Grignou
On Mon, Oct 21, 2019 at 9:27 AM Jonathan Cameron wrote: > > On Sun, 20 Oct 2019 22:53:55 -0700 > Gwendal Grignou wrote: > > > cros_ec_sensorhub registers a listener and query motion sense FIFO, > > spread to iio sensors registers. > > > > To test, we can use libiio: > > iiod& > > iio_readdev -u

Re: [PATCH v2 10/18] platform: chrome: sensorhub: Add FIFO support

2019-10-21 Thread Jonathan Cameron
On Sun, 20 Oct 2019 22:53:55 -0700 Gwendal Grignou wrote: > cros_ec_sensorhub registers a listener and query motion sense FIFO, > spread to iio sensors registers. > > To test, we can use libiio: > iiod& > iio_readdev -u ip:localhost -T 1 -s 25 -b 16 cros-ec-gyro | od -x > > Signed-off-by:

[PATCH v2 10/18] platform: chrome: sensorhub: Add FIFO support

2019-10-20 Thread Gwendal Grignou
cros_ec_sensorhub registers a listener and query motion sense FIFO, spread to iio sensors registers. To test, we can use libiio: iiod& iio_readdev -u ip:localhost -T 1 -s 25 -b 16 cros-ec-gyro | od -x Signed-off-by: Gwendal Grignou --- Changes sunce v2: - Do not register a .remove routinge