linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] iio: Hardware buffer improvements
@ 2015-05-29 16:14 Lars-Peter Clausen
  2015-05-29 16:14 ` [PATCH 1/3] iio: Always compute masklength Lars-Peter Clausen
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Lars-Peter Clausen @ 2015-05-29 16:14 UTC (permalink / raw)
  To: Jonathan Cameron, Hartmut Knaack, Peter Meerwald
  Cc: linux-iio, Lars-Peter Clausen

Hi,

This series has a few small improvements for hardware buffer support.

The first patch makes sure that we always compute the masklength for the
scanmask, even if the driver does not register a userspace accessable
buffer. This makes it possible to support cases where the data of the
device can not be accessed by software but is directly passed to a
different device which can then register a in kernel consumer to control
the buffer of the device.

The second patch adds support for specifying the supported buffer modes for
each buffer type. This makes sure that the correct mode is chosen when a
device driver support multiple types, e.g. both software and hardware
buffers and also makes sure that we can attach buffers which are not
supported by the device (e.g. callback buffer to sca3000).

The last patch makes sure that when running in hardware mode the scan mask
matching is strict since there is no software demuxer in that case.

- Lars

Lars-Peter Clausen (3):
  iio: Always compute masklength
  iio: Specify supported modes for buffers
  iio: Require strict scan mask matching in hardware mode

 drivers/iio/buffer_cb.c                  |  2 ++
 drivers/iio/industrialio-buffer.c        | 58 ++++++++++++++++++++++++--------
 drivers/iio/kfifo_buf.c                  |  2 ++
 drivers/staging/iio/accel/sca3000_ring.c |  2 ++
 include/linux/iio/buffer.h               |  3 ++
 5 files changed, 53 insertions(+), 14 deletions(-)

-- 
2.1.4


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

end of thread, other threads:[~2016-01-01 17:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-29 16:14 [PATCH 0/3] iio: Hardware buffer improvements Lars-Peter Clausen
2015-05-29 16:14 ` [PATCH 1/3] iio: Always compute masklength Lars-Peter Clausen
2015-06-01 10:28   ` Jonathan Cameron
2015-05-29 16:14 ` [PATCH 2/3] iio: Specify supported modes for buffers Lars-Peter Clausen
2015-06-01 10:31   ` Jonathan Cameron
2016-01-01 17:50   ` Jonathan Cameron
2015-05-29 16:14 ` [PATCH 3/3] iio: Require strict scan mask matching in hardware mode Lars-Peter Clausen
2015-06-01 10:34   ` Jonathan Cameron
2015-06-03 17:19     ` Lars-Peter Clausen
2015-06-06 21:07       ` Jonathan Cameron

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