From: Jonathan Cameron <jic23@kernel.org>
To: linux-iio@vger.kernel.org
Cc: lars-Peter Clausen <lars@metafoo.de>
Subject: Re: [PATCH] iio:adc:ti_am335x_adc Fix buffered mode by identifying as software buffer.
Date: Sat, 16 Jan 2016 13:06:18 +0000 [thread overview]
Message-ID: <569A404A.9060002@kernel.org> (raw)
In-Reply-To: <1451671534-23708-1-git-send-email-jic23@kernel.org>
On 01/01/16 18:05, Jonathan Cameron wrote:
> Whilst this part has a hardware buffer, the identifcation that IIO cares
> about is the userspace facing end. It this case we push individual elements
> from the hardware fifo into the software interface (specifically a kfifo)
> rather than providing direct reads through to a hardware buffer
> (as we still do in the sca3000 for example).
>
> Technically the original specification as a hardware buffer could be
> considered wrong, but it didn't matter until the patch listed below.
>
> Result is that any attempt to enable the buffer will return -EINVAL
>
> Fixes: 225d59adf1c8 ("iio: Specify supported modes for buffers")
> Cc: lars-Peter Clausen <lars@metafoo.de>
> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Long enough - whilst I don't like applying my own patches without review
this one is trivial enough I'm going to do so anyway.
Applied to the fixes-togreg branch of iio.git
Jonathan
> ---
> drivers/iio/adc/ti_am335x_adc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/iio/adc/ti_am335x_adc.c b/drivers/iio/adc/ti_am335x_adc.c
> index 942320e32753..c1e05532d437 100644
> --- a/drivers/iio/adc/ti_am335x_adc.c
> +++ b/drivers/iio/adc/ti_am335x_adc.c
> @@ -289,7 +289,7 @@ static int tiadc_iio_buffered_hardware_setup(struct iio_dev *indio_dev,
> goto error_kfifo_free;
>
> indio_dev->setup_ops = setup_ops;
> - indio_dev->modes |= INDIO_BUFFER_HARDWARE;
> + indio_dev->modes |= INDIO_BUFFER_SOFTWARE;
>
> return 0;
>
>
prev parent reply other threads:[~2016-01-16 13:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-01 18:05 [PATCH] iio:adc:ti_am335x_adc Fix buffered mode by identifying as software buffer Jonathan Cameron
2016-01-16 13:06 ` 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=569A404A.9060002@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 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).