<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/iio/industrialio-buffer.c, branch linux-3.14.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.14.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.14.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2016-02-25T19:58:53Z</updated>
<entry>
<title>iio: fix some warning messages</title>
<updated>2016-02-25T19:58:53Z</updated>
<author>
<name>Dan Carpenter</name>
</author>
<published>2015-11-21T10:33:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=83fc7975adfc9c6f1681cd51240016e82201a8da'/>
<id>urn:sha1:83fc7975adfc9c6f1681cd51240016e82201a8da</id>
<content type='text'>
commit 231bfe53c57e89857753c940192acba933cba56c upstream.

WARN_ON() only takes a condition argument.  I have changed these to
WARN() instead.

Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>iio: industrialio-buffer: Fix iio_buffer_poll return value</title>
<updated>2015-09-21T17:02:15Z</updated>
<author>
<name>Cristina Opriceana</name>
</author>
<published>2015-08-03T10:37:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=de1cd705e3173dd268a505e69a7ece661017db86'/>
<id>urn:sha1:de1cd705e3173dd268a505e69a7ece661017db86</id>
<content type='text'>
commit 1bdc0293901cbea23c6dc29432e81919d4719844 upstream.

Change return value to 0 if no device is bound since
unsigned int cannot support negative error codes.

Fixes: f18e7a068 ("iio: Return -ENODEV for file operations if the
device has been unregistered")

Signed-off-by: Cristina Opriceana &lt;cristina.opriceana@gmail.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>iio: buffer: Fix demux table creation</title>
<updated>2014-08-07T21:52:37Z</updated>
<author>
<name>Lars-Peter Clausen</name>
</author>
<published>2014-07-17T15:59:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e50aa1ea6d75d44d3a4b66863b2e7cb656d91779'/>
<id>urn:sha1:e50aa1ea6d75d44d3a4b66863b2e7cb656d91779</id>
<content type='text'>
commit 61bd55ce1667809f022be88da77db17add90ea4e upstream.

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 &lt;lars@metafoo.de&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>iio: querying buffer scan_mask should return 0/1</title>
<updated>2014-05-06T14:59:27Z</updated>
<author>
<name>Alec Berg</name>
</author>
<published>2014-03-19T18:50:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=92c5fbd00304d038d57a282552986cd44912decf'/>
<id>urn:sha1:92c5fbd00304d038d57a282552986cd44912decf</id>
<content type='text'>
commit 2076a20fc1a06f7b0333c62a2bb4eeeac7ed1bcb upstream.

Ensure that querying the IIO buffer scan_mask returns a value of
0 or 1. Currently querying the scan mask has the value returned
by test_bit(), which returns either true or false. For some
architectures test_bit() may return -1 for true, which will appear
to return an error when returning from iio_scan_mask_query().

Additionally, it's important for the sysfs interface to consistently
return the same thing when querying the scan_mask.

Signed-off-by: Alec Berg &lt;alecaberg@chromium.org&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>iio: Add support for blocking IO on buffers</title>
<updated>2013-12-03T20:22:29Z</updated>
<author>
<name>Lars-Peter Clausen</name>
</author>
<published>2013-11-25T14:56:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ee551a10006f3728c231bbe9c30635ff53250dbc'/>
<id>urn:sha1:ee551a10006f3728c231bbe9c30635ff53250dbc</id>
<content type='text'>
Currently the IIO buffer interface only allows non-blocking reads. This patch
adds support for blocking IO. In blocking mode the thread will go to sleep if no
data is available and will wait for the buffer implementation to signal that new
data is available by waking up the buffers waitqueue.

Signed-off-by: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: Add data_available callback for buffers</title>
<updated>2013-12-03T20:22:28Z</updated>
<author>
<name>Lars-Peter Clausen</name>
</author>
<published>2013-11-25T14:56:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=647cc7b9be861e01723a3183f5d06729a1613a97'/>
<id>urn:sha1:647cc7b9be861e01723a3183f5d06729a1613a97</id>
<content type='text'>
This patch adds a new data_available() callback to the iio_buffer_access_funcs
struct. The callback is used to indicate whether data is available in the buffer
for reading. It is meant to replace the stufftoread flag from the iio_buffer
struct. The reasoning for this is that the buffer implementation usually can
determine whether data is available rather easily based on its state, on the
other hand it can be rather tricky to update the stufftoread flag in a race free
way.

Signed-off-by: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>Merge 3.12-rc6 into staging-next.</title>
<updated>2013-10-19T20:14:34Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
</author>
<published>2013-10-19T20:14:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f7a0fd56e4f58aec3300082fc10433052e2f1863'/>
<id>urn:sha1:f7a0fd56e4f58aec3300082fc10433052e2f1863</id>
<content type='text'>
We want these fixes in here as well.

Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>iio: Remove unused iio_sw_buffer_preenable()</title>
<updated>2013-10-16T18:17:06Z</updated>
<author>
<name>Lars-Peter Clausen</name>
</author>
<published>2013-10-14T16:49:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bf741c08af194ed0448799ff2690c8dd3da709e5'/>
<id>urn:sha1:bf741c08af194ed0448799ff2690c8dd3da709e5</id>
<content type='text'>
The functionality implemented by iio_sw_buffer_preenable() is now done directly
in the IIO core and previous users of iio_sw_buffer_preenable() have all been
updated to not use it anymore. It is unused now and can be remove.

Signed-off-by: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: Update buffer's bytes per datum after updating the scan mask</title>
<updated>2013-10-16T18:09:27Z</updated>
<author>
<name>Lars-Peter Clausen</name>
</author>
<published>2013-10-14T16:49:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8e050996c85f2df135e54053ce74f47577382366'/>
<id>urn:sha1:8e050996c85f2df135e54053ce74f47577382366</id>
<content type='text'>
Currently a IIO device driver needs to make sure to update the buffer's bytes
per datum after the scan mask has changed. This is usually done in the preenable
callback by invoking iio_sw_buffer_preenable(). This is something that needs to
be done and is done for virtually all devices which support buffers (we
currently have only one exception). Also this a bit of a layering violation
since we have to call the buffer setup ops from the device setup ops. This
requires the device driver to know about the internal requirements of the buffer
(e.g. whether we need to call the set_bytes_per_datum) callback. And especially
with in-kernel buffer consumers, which allows to attach arbitrary buffers to a
device, this is something that the driver can't know.

Moving this to the core allows us to drop the individual calls to
iio_sw_buffer_preenable() from drivers.

Signed-off-by: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Cc: Denis Ciocca &lt;denis.ciocca@st.com&gt;
Cc: Marek Vasut &lt;marex@denx.de&gt;
Cc: Zubair Lutfullah &lt;zubair.lutfullah@gmail.com&gt;
Cc: Jacek Anaszewski &lt;j.anaszewski@samsung.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio:buffer: Free active scan mask in iio_disable_all_buffers()</title>
<updated>2013-10-15T18:26:43Z</updated>
<author>
<name>Lars-Peter Clausen</name>
</author>
<published>2013-10-15T08:38:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e086ed76671252d5b539854a83f8506be7bea05c'/>
<id>urn:sha1:e086ed76671252d5b539854a83f8506be7bea05c</id>
<content type='text'>
Usually the active scan mask is freed in __iio_update_buffers() when the buffer
is disabled. But when the device is still sampling when it is removed we'll end
up disabling the buffers in iio_disable_all_buffers(). So we also need to free
the active scan mask here, otherwise it will be leaked.

Signed-off-by: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
</feed>
