[PATCH v3 0/2] iio: add watermark logic to iio read and poll

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

 



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

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