<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/iio/industrialio-buffer.c, branch linux-3.15.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.15.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.15.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2014-08-07T23:53:52Z</updated>
<entry>
<title>iio: buffer: Fix demux table creation</title>
<updated>2014-08-07T23:53:52Z</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=49ab5de52b88d5e3a06c55aa07594e798c6eb9cc'/>
<id>urn:sha1:49ab5de52b88d5e3a06c55aa07594e798c6eb9cc</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>Merge tag 'iio-fixes-for-3.15a' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-linus</title>
<updated>2014-04-23T04:29:20Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
</author>
<published>2014-04-23T04:29:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8b425aa193439a2b60a988a9230f1de753e36902'/>
<id>urn:sha1:8b425aa193439a2b60a988a9230f1de753e36902</id>
<content type='text'>
Jonathan writes:

First found of IIO fixes for the 3.15 cycle.

* Fix the platform data support for the at91 adc driver.
* A couple of related follow up patches get the support working again
  for at91sam9260 and at91sam9g45 as the earlier patch results in a device
  name change.
* A default timer value in the at91 adc driver was bonkers.  Make it sane.
* Fix incorrect reporting of the integration time for the cm32181 light sensor
* Fix a missing break in the ad2s1200 driver which would have give a false
  error return.
* Make sure buffer scan mask queries from userspace return 0/1 rather than
  a fairly random value depending on their implementation of test_bit
* Fix leak of the i2c client and a null pointer dereference in the cm36651
  driver.
* Fix a build warning on avr32 for the mxs-lradc (not exactly a critical
  combination - but the issue was real).
</content>
</entry>
<entry>
<title>iio: querying buffer scan_mask should return 0/1</title>
<updated>2014-03-22T12:19:07Z</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=2076a20fc1a06f7b0333c62a2bb4eeeac7ed1bcb'/>
<id>urn:sha1:2076a20fc1a06f7b0333c62a2bb4eeeac7ed1bcb</id>
<content type='text'>
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;
Cc: stable@vger.kernel.org
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio get rid of unneccessary error_ret</title>
<updated>2014-02-18T08:46:36Z</updated>
<author>
<name>Hartmut Knaack</name>
</author>
<published>2014-02-16T11:53:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=92825ff97411f0121166485798cdaf2deb6b5952'/>
<id>urn:sha1:92825ff97411f0121166485798cdaf2deb6b5952</id>
<content type='text'>
Get rid of obsolete uses of goto error_ret and some empty lines.

Signed-off-by: Hartmut Knaack &lt;knaack.h@gmx.de&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.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>
