<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/git/stable/linux.git/drivers/iio/humidity, branch linux-4.3.y</title>
<subtitle>Linux kernel stable tree</subtitle>
<id>https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/atom?h=linux-4.3.y</id>
<link rel='self' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/atom?h=linux-4.3.y'/>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/'/>
<updated>2015-07-20T17:41:20+00:00</updated>
<entry>
<title>iio: dht11: Use new function ktime_get_resolution_ns()</title>
<updated>2015-07-20T17:41:20+00:00</updated>
<author>
<name>Harald Geyer</name>
<email>harald@ccbib.org</email>
</author>
<published>2015-07-07T13:39:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=081d974031bafb204d64de3e82f398daf1d0b899'/>
<id>urn:sha1:081d974031bafb204d64de3e82f398daf1d0b899</id>
<content type='text'>
This cleans up the most ugly workaround in this driver. There are no
functional changes yet in the decoding algorithm, but we improve the
following things:
 * Get rid of spurious warning messages on systems with fast HRTIMER.
 * If the clock is not fast enough for decoding to work, we give
   up immediately.
 * In that case we return EAGAIN instead of EIO, so it's easier to
   discriminate causes of failure.

Returning EAGAIN is somewhat controversial: It's technically correct
as a faster clock might become available. OTOH once all clocks are
enabled this is a permanent error. There is no ECLOCKTOOSLOW error
code.

Signed-off-by: Harald Geyer &lt;harald@ccbib.org&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: dht11: avoid multiple assignments to make checkpatch.pl --strict happy</title>
<updated>2015-07-20T17:41:19+00:00</updated>
<author>
<name>Harald Geyer</name>
<email>harald@ccbib.org</email>
</author>
<published>2015-07-07T13:39:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=5fbb0bc466b7b43036b1dd8c9e9166ca9e69e07a'/>
<id>urn:sha1:5fbb0bc466b7b43036b1dd8c9e9166ca9e69e07a</id>
<content type='text'>
We just do the assignments in two steps.

Signed-off-by: Harald Geyer &lt;harald@ccbib.org&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: dht11: add comment to make checkpatch.pl --strict happy</title>
<updated>2015-07-20T17:41:18+00:00</updated>
<author>
<name>Harald Geyer</name>
<email>harald@ccbib.org</email>
</author>
<published>2015-07-07T13:39:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=a7126003b6dd47c0088d952734379ef471156c5f'/>
<id>urn:sha1:a7126003b6dd47c0088d952734379ef471156c5f</id>
<content type='text'>
Explain why the driver needs a mutex.

Signed-off-by: Harald Geyer &lt;harald@ccbib.org&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: dht11: whitespace changes to make checkpatch.pl --strict happy</title>
<updated>2015-07-20T17:41:17+00:00</updated>
<author>
<name>Harald Geyer</name>
<email>harald@ccbib.org</email>
</author>
<published>2015-07-07T13:39:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=889c5e9b668670c91dcd3a8f2b15a0b2086f4827'/>
<id>urn:sha1:889c5e9b668670c91dcd3a8f2b15a0b2086f4827</id>
<content type='text'>
* add spaces around binary operators in cases where it reduces readability
* align multiline statements around opening parenthesis

Reported-by: Hartmut Knaack &lt;knaack.h@gmx.de&gt;
	in Message-ID: &lt;55919E72.3010807@gmx.de&gt;

Signed-off-by: Harald Geyer &lt;harald@ccbib.org&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: Drop owner assignment from i2c_driver</title>
<updated>2015-07-11T17:50:07+00:00</updated>
<author>
<name>Krzysztof Kozlowski</name>
<email>k.kozlowski@samsung.com</email>
</author>
<published>2015-07-10T05:54:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=2155971a66f89924edb37c213251c4fe9f7776c0'/>
<id>urn:sha1:2155971a66f89924edb37c213251c4fe9f7776c0</id>
<content type='text'>
i2c_driver does not need to set an owner because i2c_register_driver()
will set it.

Signed-off-by: Krzysztof Kozlowski &lt;k.kozlowski@samsung.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: Allow compile test of GPIO consumers if !GPIOLIB</title>
<updated>2015-05-10T19:31:43+00:00</updated>
<author>
<name>Geert Uytterhoeven</name>
<email>geert@linux-m68k.org</email>
</author>
<published>2015-05-05T16:32:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=8493585317b1fe1ab7a334faac71fb1e36fde508'/>
<id>urn:sha1:8493585317b1fe1ab7a334faac71fb1e36fde508</id>
<content type='text'>
The GPIO subsystem provides dummy GPIO consumer functions if GPIOLIB is
not enabled. Hence drivers that depend on GPIOLIB, but use GPIO consumer
functionality only, can still be compiled if GPIOLIB is not enabled.

Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where
appropriate.

Signed-off-by: Geert Uytterhoeven &lt;geert@linux-m68k.org&gt;
Cc: Jonathan Cameron &lt;jic23@kernel.org&gt;
Cc: linux-iio@vger.kernel.org
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>IIO: si7020: Allocate correct amount of memory in devm_iio_device_alloc</title>
<updated>2015-02-14T11:35:12+00:00</updated>
<author>
<name>Andrey Smirnov</name>
<email>andrew.smirnov@gmail.com</email>
</author>
<published>2015-02-13T07:58:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=e01becbad300712a28f29b666e685536f45e83bc'/>
<id>urn:sha1:e01becbad300712a28f29b666e685536f45e83bc</id>
<content type='text'>
Since only a pointer to struct i2c_client is stored in a private area
of IIO device created by the driver there's no need to allocate
sizeof(struct i2c_client) worth of storage.

Pushed to stable as this is linked to the revert patch previously.
Without this followup the original patch looks sensible.

Signed-off-by: Andrey Smirnov &lt;andrew.smirnov@gmail.com&gt;
Cc: Stable@vger.kernel.org
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>Revert "iio:humidity:si7020: fix pointer to i2c client"</title>
<updated>2015-02-14T11:32:17+00:00</updated>
<author>
<name>Jonathan Cameron</name>
<email>jic23@kernel.org</email>
</author>
<published>2015-02-14T11:32:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=e765537add38cf7967efa11999bb5daf84a6517d'/>
<id>urn:sha1:e765537add38cf7967efa11999bb5daf84a6517d</id>
<content type='text'>
This reverts commit e0922e5e3ccb78aa0152e93dfbd1755ac39c8582.
Requested by Andrey Smirnov.

It incorrectly assumes that the level of indirection is not needed
which is not true(probably because the driver incorrectly allocates
sizeof(*client) instead of sizeof(*data) via devm_iio_device_alloc).
If you look at the code of the probe function(see below) it is easy to
see that what is being stored in the private memory of the IIO device
instance is not a copy of a 'struct i2c_client' but a pointer to an
instance passed as an argument to the probe function.

struct i2c_client **data;
int ret;

&lt; Some code skipped &gt;

indio_dev = devm_iio_device_alloc(&amp;client-&gt;dev, sizeof(*client));
if (!indio_dev)
return -ENOMEM;

data = iio_priv(indio_dev);
*data = client;

Without reverting this change any read of a raw value of this sensor
leads to a kernel oops due to a NULL pointer de-reference on my
hardware setup.

Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
Cc: Stable@vger.kernel.org
</content>
</entry>
<entry>
<title>iio: dht11: IRQ fixes</title>
<updated>2015-01-10T11:16:32+00:00</updated>
<author>
<name>Richard Weinberger</name>
<email>richard@nod.at</email>
</author>
<published>2015-01-07T12:22:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=94e65519abde01cbffb9c538a4598f6a50bc86d1'/>
<id>urn:sha1:94e65519abde01cbffb9c538a4598f6a50bc86d1</id>
<content type='text'>
Since setting irq-enabled GPIOs into output state is not supported
by all GPIO controllers, we need to disable the irq while requesting
sensor data. As side effect we lose a tiny bit of functionality:
Some wiring problems can't be concluded from log messages anymore.

Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
Signed-off-by: Harald Geyer &lt;harald@ccbib.org&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: dht11: Add locking</title>
<updated>2015-01-10T11:14:53+00:00</updated>
<author>
<name>Richard Weinberger</name>
<email>richard@nod.at</email>
</author>
<published>2015-01-07T12:18:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=004bc530341a40536494431cf665504f8ee70266'/>
<id>urn:sha1:004bc530341a40536494431cf665504f8ee70266</id>
<content type='text'>
Make sure that the read function is not interrupted...

Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
Acked-by: Harald Geyer &lt;harald@ccbib.org&gt;
Reviewed-by: Sanjeev Sharma &lt;sanjeev_sharma@mentor.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
</feed>
