From: Jonathan Cameron <jic23@kernel.org>
To: Lars-Peter Clausen <lars@metafoo.de>
Cc: linux-iio@vger.kernel.org
Subject: Re: [PATCH 1/4] iio: buffer: Fix demux table creation
Date: Sun, 20 Jul 2014 15:57:03 +0100 [thread overview]
Message-ID: <53CBD8BF.40207@kernel.org> (raw)
In-Reply-To: <1405612789-27964-1-git-send-email-lars@metafoo.de>
On 17/07/14 16:59, Lars-Peter Clausen wrote:
> When creating the demux table we need to iterate over the selected scan mask for
> the buffer to get the samples which should be copied to destination buffer.
> Right now the code uses the mask which contains all active channels, which means
> the demux table contains entries which causes it to copy all the samples from
> source to destination buffer one by one without doing any demuxing.
>
> Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Ouch. Applied to the fixes-togreg branch of iio.git and marked
for stable.
How we managed to fail to see the effects of this is beyond me.
I guess the fact that the timestamp is handled separately made
it quite a bit less obvious than it otherwise would have been.
Thanks,
Jonathan
> ---
> drivers/iio/industrialio-buffer.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/iio/industrialio-buffer.c b/drivers/iio/industrialio-buffer.c
> index 2952ee0..0472ee2 100644
> --- a/drivers/iio/industrialio-buffer.c
> +++ b/drivers/iio/industrialio-buffer.c
> @@ -963,7 +963,7 @@ static int iio_buffer_update_demux(struct iio_dev *indio_dev,
>
> /* Now we have the two masks, work from least sig and build up sizes */
> for_each_set_bit(out_ind,
> - indio_dev->active_scan_mask,
> + buffer->scan_mask,
> indio_dev->masklength) {
> in_ind = find_next_bit(indio_dev->active_scan_mask,
> indio_dev->masklength,
>
prev parent reply other threads:[~2014-07-20 14:54 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-17 15:59 [PATCH 1/4] iio: buffer: Fix demux table creation Lars-Peter Clausen
2014-07-17 15:59 ` [PATCH 2/4] iio: buffer: Use roundup() instead of ALIGN() Lars-Peter Clausen
2014-07-20 15:08 ` Jonathan Cameron
2014-07-21 8:46 ` Lars-Peter Clausen
2014-07-27 16:45 ` Jonathan Cameron
2014-07-17 15:59 ` [PATCH 3/4] iio: buffer: Use roundup() instead of open-coding it Lars-Peter Clausen
2014-07-27 18:13 ` Jonathan Cameron
2014-07-17 15:59 ` [PATCH 4/4] iio: buffer: Coalesce adjacent demux table entries Lars-Peter Clausen
2014-07-20 15:14 ` Jonathan Cameron
2014-08-01 17:28 ` Jonathan Cameron
2014-07-20 14:57 ` Jonathan Cameron [this message]
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=53CBD8BF.40207@kernel.org \
--to=jic23@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
/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 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.