All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lars-Peter Clausen <lars@metafoo.de>
To: Octavian Purdila <octavian.purdila@intel.com>
Cc: "linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>,
	Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>,
	Josselin Costanzi <josselin.costanzi@mobile-devices.fr>
Subject: Re: [PATCH v4 1/3] iio: add watermark logic to iio read and poll
Date: Wed, 04 Mar 2015 15:40:58 +0100	[thread overview]
Message-ID: <54F7197A.1030909@metafoo.de> (raw)
In-Reply-To: <CAE1zot+z7q5Oziv5rjxbWw0FO32eQciGOHQXLp5UG9zbeiNdBg@mail.gmail.com>

On 03/04/2015 02:55 PM, Octavian Purdila wrote:
[...]
>>>    int iio_buffer_alloc_sysfs_and_mask(struct iio_dev *indio_dev)
>>> @@ -944,8 +1022,18 @@ static const void *iio_demux(struct iio_buffer
>>> *buffer,
>>>    static int iio_push_to_buffer(struct iio_buffer *buffer, const void
>>> *data)
>>>    {
>>>          const void *dataout = iio_demux(buffer, data);
>>> +       int ret;
>>> +
>>> +       ret = buffer->access->store_to(buffer, dataout);
>>> +       if (ret)
>>> +               return ret;
>>>
>>> -       return buffer->access->store_to(buffer, dataout);
>>> +       /*
>>> +        * We can't just test for watermark to decide if we wake the poll
>>> queue
>>> +        * because read may request less samples than the watermark.
>>> +        */
>>> +       wake_up_interruptible(&buffer->pollq);
>>
>>
>> What happened to poll parameters?
>>
>
> I don't understand you question, can you please elaborate?

Previously we were calling wake_up_interruptible_poll(&r->pollq, POLLIN | 
POLLRDNORM);


  reply	other threads:[~2015-03-04 14:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-03 16:20 [PATCH v4 0/3] iio: add support for hardware fifos Octavian Purdila
2015-03-03 16:21 ` [PATCH v4 1/3] iio: add watermark logic to iio read and poll Octavian Purdila
2015-03-03 17:46   ` Lars-Peter Clausen
2015-03-04 13:55     ` Octavian Purdila
2015-03-04 14:40       ` Lars-Peter Clausen [this message]
2015-03-04 16:01         ` Octavian Purdila
2015-03-03 16:21 ` [PATCH v4 2/3] iio: add support for hardware fifo Octavian Purdila
2015-03-03 16:21 ` [PATCH v4 3/3] iio: bmc150_accel: " Octavian Purdila

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=54F7197A.1030909@metafoo.de \
    --to=lars@metafoo.de \
    --cc=josselin.costanzi@mobile-devices.fr \
    --cc=linux-iio@vger.kernel.org \
    --cc=octavian.purdila@intel.com \
    --cc=srinivas.pandruvada@linux.intel.com \
    /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.