<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/iio/imu, 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:54Z</updated>
<entry>
<title>iio: adis_buffer: Fix out-of-bounds memory access</title>
<updated>2016-02-25T19:58:54Z</updated>
<author>
<name>Lars-Peter Clausen</name>
</author>
<published>2015-11-27T13:55:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b54153db9b08def355798e9b5eb12d1afe325131'/>
<id>urn:sha1:b54153db9b08def355798e9b5eb12d1afe325131</id>
<content type='text'>
commit d590faf9e8f8509a0a0aa79c38e87fcc6b913248 upstream.

The SPI tx and rx buffers are both supposed to be scan_bytes amount of
bytes large and a common allocation is used to allocate both buffers. This
puts the beginning of the tx buffer scan_bytes bytes after the rx buffer.
The initialization of the tx buffer pointer is done adding scan_bytes to
the beginning of the rx buffer, but since the rx buffer is of type __be16
this will actually add two times as much and the tx buffer ends up pointing
after the allocated buffer.

Fix this by using scan_count, which is scan_bytes / 2, instead of
scan_bytes when initializing the tx buffer pointer.

Fixes: aacff892cbd5 ("staging:iio:adis: Preallocate transfer message")
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: adis16480: Fix scale factors</title>
<updated>2015-09-21T17:02:16Z</updated>
<author>
<name>Lars-Peter Clausen</name>
</author>
<published>2015-08-05T13:38:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=658632e01fb9fea40788bf172f61cdd79ae041fd'/>
<id>urn:sha1:658632e01fb9fea40788bf172f61cdd79ae041fd</id>
<content type='text'>
commit 7abad1063deb0f77d275c61f58863ec319c58c5c upstream.

The different devices support by the adis16480 driver have slightly
different scales for the gyroscope and accelerometer channels.

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: adis16400: Compute the scan mask from channel indices</title>
<updated>2015-06-23T00:01:19Z</updated>
<author>
<name>Paul Cercueil</name>
</author>
<published>2015-05-15T15:18:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=209abaeab184e0c75728b380914117b7be2dd89a'/>
<id>urn:sha1:209abaeab184e0c75728b380914117b7be2dd89a</id>
<content type='text'>
commit c2a8b623a089d52c199e305e7905829907db8ec8 upstream.

We unfortunately can't use ~0UL for the scan mask to indicate that the
only valid scan mask is all channels selected. The IIO core needs the exact
mask to work correctly and not a super-set of it. So calculate the masked
based on the channels that are available for a particular device.

Signed-off-by: Paul Cercueil &lt;paul.cercueil@analog.com&gt;
Signed-off-by: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Fixes: 5eda3550a3cc ("staging:iio:adis16400: Preallocate transfer message")
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: adis16400: Use != channel indices for the two voltage channels</title>
<updated>2015-06-23T00:01:19Z</updated>
<author>
<name>Paul Cercueil</name>
</author>
<published>2015-05-15T15:18:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=220fa1e4d7069b677d6aa9723ff71674decdbb28'/>
<id>urn:sha1:220fa1e4d7069b677d6aa9723ff71674decdbb28</id>
<content type='text'>
commit 7323d59862802ca109451eeda9777024a7625509 upstream.

Previously, the two voltage channels had the same ID, which didn't cause
conflicts in sysfs only because one channel is named and the other isn't;
this is still violating the spec though, two indexed channels should never
have the same index.

Signed-off-by: Paul Cercueil &lt;paul.cercueil@analog.com&gt;
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: adis16400: Report pressure channel scale</title>
<updated>2015-06-23T00:01:19Z</updated>
<author>
<name>Lars-Peter Clausen</name>
</author>
<published>2015-05-15T15:18:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8fdf5cac123483476bc51c5149b83a984eb8bdb2'/>
<id>urn:sha1:8fdf5cac123483476bc51c5149b83a984eb8bdb2</id>
<content type='text'>
commit 69ca2d771e4e709c5ae1125858e1246e77ef8b86 upstream.

Add the scale for the pressure channel, which is currently missing.

Signed-off-by: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Fixes: 76ada52f7f5d ("iio:adis16400: Add support for the adis16448")
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: imu: Use iio_trigger_get for indio_dev-&gt;trig assignment</title>
<updated>2015-04-19T08:11:07Z</updated>
<author>
<name>Darshana Padmadas</name>
</author>
<published>2015-03-28T06:37:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=aef709320362aa4c86e96e1e48fb6c3aa357d17f'/>
<id>urn:sha1:aef709320362aa4c86e96e1e48fb6c3aa357d17f</id>
<content type='text'>
commit 4ce7ca89d6e8eae9e201cd0e972ba323f33e2fb4 upstream.

This patch uses iio_trigger_get to increment the reference
count of trigger device, to avoid incorrect assignment.
Can result in a null pointer dereference during removal if the
trigger has been changed before removal.

This patch refers to a similar situation encountered through the
following discussion:
http://www.spinics.net/lists/linux-iio/msg13669.html

Signed-off-by: Darshana Padmadas &lt;darshanapadmadas@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: inv_mpu6050: Clear timestamps fifo while resetting hardware fifo</title>
<updated>2015-04-19T08:11:07Z</updated>
<author>
<name>Viorel Suman</name>
</author>
<published>2015-02-18T18:05:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1d780d7aa25a0f0081144b5a63db23e16e9ba320'/>
<id>urn:sha1:1d780d7aa25a0f0081144b5a63db23e16e9ba320</id>
<content type='text'>
commit 4dac0a8eefd55bb1f157d1a5a084531334a2d74c upstream.

A hardware fifo reset always imply an invalidation of the
existing timestamps, so we'll clear timestamps fifo on
successfull hardware fifo reset.

Signed-off-by: Viorel Suman &lt;viorel.suman@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: imu: adis16400: Fix sign extension</title>
<updated>2015-03-18T12:31:25Z</updated>
<author>
<name>Rasmus Villemoes</name>
</author>
<published>2015-01-22T23:34:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=33b3078b509b4e6732922ab34359fbcab076c2a5'/>
<id>urn:sha1:33b3078b509b4e6732922ab34359fbcab076c2a5</id>
<content type='text'>
commit 19e353f2b344ad86cea6ebbc0002e5f903480a90 upstream.

The intention is obviously to sign-extend a 12 bit quantity. But
because of C's promotion rules, the assignment is equivalent to "val16
&amp;= 0xfff;". Use the proper API for this.

Signed-off-by: Rasmus Villemoes &lt;linux@rasmusvillemoes.dk&gt;
Acked-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: inv_mpu6050: Fix indio_dev-&gt;trig assignment</title>
<updated>2014-10-05T21:52:18Z</updated>
<author>
<name>Srinivas Pandruvada</name>
</author>
<published>2014-08-22T20:48:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fb5ac57e3553688c830d7eb0dba24290ce9ed435'/>
<id>urn:sha1:fb5ac57e3553688c830d7eb0dba24290ce9ed435</id>
<content type='text'>
commit b07e3b3850b2e1f09c19f54d3ed7210d9f529e2c upstream.

This can result in wrong reference count for trigger device, call
iio_trigger_get to increment reference.
Refer to http://www.spinics.net/lists/linux-iio/msg13669.html for discussion
with Jonathan.

Signed-off-by: Srinivas Pandruvada &lt;srinivas.pandruvada@linux.intel.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:imu:mpu6050: Fixed segfault in Invensens MPU driver due to null dereference</title>
<updated>2014-06-07T17:28:15Z</updated>
<author>
<name>Atilla Filiz</name>
</author>
<published>2014-04-11T14:51:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=edbfad5ceee721db176f03fb56070ff651b7f2e6'/>
<id>urn:sha1:edbfad5ceee721db176f03fb56070ff651b7f2e6</id>
<content type='text'>
commit b9b3a41893c3f1be67b5aacfa525969914bea0e9 upstream.

The driver segfaults when the kernel boots with device tree as the
platform data is then not present and the pointer is deferenced without
checking it is not null.  This patch introduces such a check avoiding the
crash.

Signed-off-by: Atilla Filiz &lt;atilla.filiz@essensium.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>
</feed>
