From: Josselin Costanzi <josselin.costanzi@mobile-devices.fr>
To: linux-iio@vger.kernel.org
Cc: jic23@kernel.org, lars@metafoo.de,
yannick.bedhomme@mobile-devices.fr,
Josselin Costanzi <josselin.costanzi@mobile-devices.fr>
Subject: [PATCH v3 0/2] iio: add watermark logic to iio read and poll
Date: Fri, 27 Jun 2014 18:19:59 +0200 [thread overview]
Message-ID: <1403886001-23354-1-git-send-email-josselin.costanzi@mobile-devices.fr> (raw)
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
next reply other threads:[~2014-06-27 16:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-27 16:19 Josselin Costanzi [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1403886001-23354-1-git-send-email-josselin.costanzi@mobile-devices.fr \
--to=josselin.costanzi@mobile-devices.fr \
--cc=jic23@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=yannick.bedhomme@mobile-devices.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).