All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/3] iio: add support for hardware fifos
@ 2015-03-03 16:20 Octavian Purdila
  2015-03-03 16:21 ` [PATCH v4 1/3] iio: add watermark logic to iio read and poll Octavian Purdila
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Octavian Purdila @ 2015-03-03 16:20 UTC (permalink / raw)
  To: linux-iio; +Cc: srinivas.pandruvada, Octavian Purdila

Hi Jonathan,

This is the 4th version of the hardware fifo patch set that addresses
the comments sent for the previous version.

Changes since v3:

* remove hwfifo_length and make hwfifo_watermark read-only

* remove trigger for hardware fifo

* use the buffer watermark as a hint for the hardware fifo

* hwfifo_watermark is negative if the device does not support hardware
  fifo, 0 if hardware fifo is supported but currently disabled and a
  strictly positive value if hardware fifo is enabled in which case
  this is the watermark for the hardware fifo

* the hardware fifo is activated by the device driver when it makes
  sense (e.g. at buffer enable time if there is no conflicting
  trigger)

* move the hwfifo operations to struct iio_info

* remove the flush from the poll operation - it causes unnecessary
  flush operations

* move the wait condition logic in a separate function to make it more
  readable

* bmc150: make sure to check the I2C bus supports either full i2c or
  at least SMBUS i2c block read as fifo reads must do a burst read of
  the whole frame (all 3 axis)

* bmc150: rework the way we timestamp the samples stored in the fifo
  to account for sampling frequency variations from device to device


Josselin Costanzi (1):
  iio: add watermark logic to iio read and poll

Octavian Purdila (2):
  iio: add support for hardware fifo
  iio: bmc150_accel: add support for hardware fifo

 Documentation/ABI/testing/sysfs-bus-iio  |  40 ++++
 drivers/iio/accel/bmc150-accel.c         | 353 +++++++++++++++++++++++++++++--
 drivers/iio/industrialio-buffer.c        | 196 ++++++++++++++---
 drivers/iio/kfifo_buf.c                  |  11 +-
 drivers/staging/iio/accel/sca3000_ring.c |   4 +-
 include/linux/iio/buffer.h               |   8 +-
 include/linux/iio/iio.h                  |  26 +++
 7 files changed, 587 insertions(+), 51 deletions(-)

-- 
1.9.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-03-04 16:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-03 16:20 [PATCH v4 0/3] iio: add support for hardware fifos Octavian Purdila
2015-03-03 16:21 ` [PATCH v4 1/3] iio: add watermark logic to iio read and poll Octavian Purdila
2015-03-03 17:46   ` Lars-Peter Clausen
2015-03-04 13:55     ` Octavian Purdila
2015-03-04 14:40       ` Lars-Peter Clausen
2015-03-04 16:01         ` Octavian Purdila
2015-03-03 16:21 ` [PATCH v4 2/3] iio: add support for hardware fifo Octavian Purdila
2015-03-03 16:21 ` [PATCH v4 3/3] iio: bmc150_accel: " Octavian Purdila

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.