linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] iio: add watermark logic to iio read and poll
@ 2014-06-27 16:19 Josselin Costanzi
  2014-06-27 16:20 ` [PATCH 1/2] iio: staging: sca3000: hide stufftoread logic Josselin Costanzi
  2014-06-27 16:20 ` [PATCH 2/2] iio: add watermark logic to iio read and poll Josselin Costanzi
  0 siblings, 2 replies; 7+ messages in thread
From: Josselin Costanzi @ 2014-06-27 16:19 UTC (permalink / raw)
  To: linux-iio; +Cc: jic23, lars, yannick.bedhomme, Josselin Costanzi

Continuing discussion in thread "iio: make blocking read wait for data", 
here is another version of the patchset.
Waking the pollqueue only when needed is more difficult than we though because
you have to take into account both the watermark and the amount of data 
currently requested by read().


Changelog:
v3: 
- Make timeout an inactivity timeout
- Add Documentation
- Issue wake_up on buffer disable
v2: thanks to Lars-Peter Clausen and Jonathan Cameron
- Avoid breaking default ABI
- Add watermark and timeout properties to buffers


Josselin Costanzi (2):
  iio: staging: sca3000: hide stufftoread logic
  iio: add watermark logic to iio read and poll

 Documentation/ABI/testing/sysfs-bus-iio  |  21 ++++
 drivers/iio/industrialio-buffer.c        | 193 +++++++++++++++++++++++++++----
 drivers/iio/kfifo_buf.c                  |  15 +--
 drivers/staging/iio/accel/sca3000_ring.c |   6 +
 include/linux/iio/buffer.h               |  48 +++++++-
 5 files changed, 249 insertions(+), 34 deletions(-)

-- 
1.9.1


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

end of thread, other threads:[~2014-07-01 14:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-27 16:19 [PATCH v3 0/2] iio: add watermark logic to iio read and poll Josselin Costanzi
2014-06-27 16:20 ` [PATCH 1/2] iio: staging: sca3000: hide stufftoread logic Josselin Costanzi
2014-06-29 13:43   ` Jonathan Cameron
2014-06-27 16:20 ` [PATCH 2/2] iio: add watermark logic to iio read and poll Josselin Costanzi
2014-06-29 14:23   ` Jonathan Cameron
2014-07-01 14:36     ` Srinivas Pandruvada
2014-06-30  9:30   ` Lars-Peter Clausen

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).