<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-dev/drivers/staging/iio/adc, branch master</title>
<subtitle>Linux kernel development work - see feature branches</subtitle>
<id>https://git.zx2c4.com/linux-dev/atom/drivers/staging/iio/adc?h=master</id>
<link rel='self' href='https://git.zx2c4.com/linux-dev/atom/drivers/staging/iio/adc?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/'/>
<updated>2022-02-21T19:33:05Z</updated>
<entry>
<title>iio:adc:ad7280a: Move out of staging</title>
<updated>2022-02-21T19:33:05Z</updated>
<author>
<name>Jonathan Cameron</name>
<email>Jonathan.Cameron@huawei.com</email>
</author>
<published>2022-02-06T19:03:28Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=cf890fe8ae3641da301ce212a22ea841c9bf6296'/>
<id>urn:sha1:cf890fe8ae3641da301ce212a22ea841c9bf6296</id>
<content type='text'>
This is a rather unusual device (in IIO anyway).  However, it has
a near to standard userspace ABI.

Note the work to move this out of staging was done against a minimal
QEMU model, which doesn't model all the features of the device.
I have no intention to upstream the QEMU model as it was developed
just to enable this driver cleanup.

https://github.com/jic23/qemu/tree/ad7280a-hacks

Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Reviewed-by: Marcelo Schmitt &lt;marcelo.schmitt1@gmail.com&gt;
Link: https://lore.kernel.org/r/20220206190328.333093-21-jic23@kernel.org
</content>
</entry>
<entry>
<title>staging:iio:adc:ad7280a: Use more conservative delays to allow 105C operation.</title>
<updated>2022-02-21T19:33:05Z</updated>
<author>
<name>Jonathan Cameron</name>
<email>Jonathan.Cameron@huawei.com</email>
</author>
<published>2022-02-06T19:03:27Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=48fb57697ee620945b6deca3d688b797acd95450'/>
<id>urn:sha1:48fb57697ee620945b6deca3d688b797acd95450</id>
<content type='text'>
The datasheet provides timings for operating this device at up to 105
degrees centigrade. Adopt these more conservative timings.

Suggested-by: Marcelo Schmitt &lt;marcelo.schmitt1@gmail.com&gt;
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Reviewed-by: Marcelo Schmitt &lt;marcelo.schmitt1@gmail.com&gt;
Link: https://lore.kernel.org/r/20220206190328.333093-20-jic23@kernel.org
</content>
</entry>
<entry>
<title>staging:iio:adc:ad7280a: Remove shift from cb_mask state cache.</title>
<updated>2022-02-21T19:33:05Z</updated>
<author>
<name>Jonathan Cameron</name>
<email>Jonathan.Cameron@huawei.com</email>
</author>
<published>2022-02-06T19:03:26Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=6c6bc851d8369d00b2466a2c5ac92b5992e09ada'/>
<id>urn:sha1:6c6bc851d8369d00b2466a2c5ac92b5992e09ada</id>
<content type='text'>
Making the local storage of the Cell Balance mask a simple
bitmap and then shifting it only at time of register write simplifies
several code paths.

Suggested-by: Marcelo Schmitt &lt;marcelo.schmitt1@gmail.com&gt;
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Reviewed-by: Marcelo Schmitt &lt;marcelo.schmitt1@gmail.com&gt;
Link: https://lore.kernel.org/r/20220206190328.333093-19-jic23@kernel.org
</content>
</entry>
<entry>
<title>staging:iio:adc:ad7280a: Drop buggy support for early termination of AUX alert.</title>
<updated>2022-02-21T19:33:05Z</updated>
<author>
<name>Jonathan Cameron</name>
<email>Jonathan.Cameron@huawei.com</email>
</author>
<published>2022-02-06T19:03:23Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=d2960145b37643970b53c60fa94fbf5c26f6eddf'/>
<id>urn:sha1:d2960145b37643970b53c60fa94fbf5c26f6eddf</id>
<content type='text'>
This functionality is intended to allow for a few temperature
sensors to be missing (and hence not worth reading) on the final
device in a chain.  The ones removed are 3 and 5 (unlike for
the ADC channels where it is 4 and 5).

The datasheet includes a foot note 3 to Table 12 that makes this complex
to support.

"(3) To remove AUX5 or AUX5 and AUX3 from the alert detection, conversions
on three auxiliary ADC input channels only must be selected in the
control register."

This mode has never been supported by the driver.

As this support would be complex to add and the rework is being done
against a QEMU model developed for the purposes of verifying nothing
is broken, it is better to drop this support for now.

Reported-by: Marcelo Schmitt &lt;marcelo.schmitt1@gmail.com&gt;
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Reviewed-by: Marcelo Schmitt &lt;marcelo.schmitt1@gmail.com&gt;
Link: https://lore.kernel.org/r/20220206190328.333093-16-jic23@kernel.org
</content>
</entry>
<entry>
<title>staging:iio:adc:ad7280a: Use device properties to replace platform data.</title>
<updated>2022-02-21T19:33:05Z</updated>
<author>
<name>Jonathan Cameron</name>
<email>Jonathan.Cameron@huawei.com</email>
</author>
<published>2022-02-06T19:03:22Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=219def44752738638a13848fb04ecb388ed03507'/>
<id>urn:sha1:219def44752738638a13848fb04ecb388ed03507</id>
<content type='text'>
Convert all the device specific info that was previously in platform data
over to generic firmware query interfaces.

dt-bindings to follow shortly.

Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Reviewed-by: Marcelo Schmitt &lt;marcelo.schmitt1@gmail.com&gt;
Link: https://lore.kernel.org/r/20220206190328.333093-15-jic23@kernel.org
</content>
</entry>
<entry>
<title>staging:iio:adc:ad7280a: Use a local dev pointer to avoid &amp;spi-&gt;dev</title>
<updated>2022-02-21T19:33:05Z</updated>
<author>
<name>Jonathan Cameron</name>
<email>Jonathan.Cameron@huawei.com</email>
</author>
<published>2022-02-06T19:03:21Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=dfa258c0660ed2a93d05fe9b7b3d3d652432bab7'/>
<id>urn:sha1:dfa258c0660ed2a93d05fe9b7b3d3d652432bab7</id>
<content type='text'>
We use this a few times already and it is about to get worse, so
introduce a local variable to simplify things.

Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Reviewed-by: Marcelo Schmitt &lt;marcelo.schmitt1@gmail.com&gt;
Link: https://lore.kernel.org/r/20220206190328.333093-14-jic23@kernel.org
</content>
</entry>
<entry>
<title>staging:iio:ad7280a: Reflect optionality of irq in ABI</title>
<updated>2022-02-21T19:33:05Z</updated>
<author>
<name>Jonathan Cameron</name>
<email>Jonathan.Cameron@huawei.com</email>
</author>
<published>2022-02-06T19:03:20Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=9010ac1c7115e1edd69d955ba50098cb3341c84d'/>
<id>urn:sha1:9010ac1c7115e1edd69d955ba50098cb3341c84d</id>
<content type='text'>
Given the irq is optional, let us remove the interfaces related to
events when it is not present.

Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Reviewed-by: Marcelo Schmitt &lt;marcelo.schmitt1@gmail.com&gt;
Link: https://lore.kernel.org/r/20220206190328.333093-13-jic23@kernel.org
</content>
</entry>
<entry>
<title>staging:iio:adc:ad7280a: Cleanup includes</title>
<updated>2022-02-21T19:33:05Z</updated>
<author>
<name>Jonathan Cameron</name>
<email>Jonathan.Cameron@huawei.com</email>
</author>
<published>2022-02-06T19:03:19Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=65ba4ab6f018c08262af98e9e83c1ebbe5c7627c'/>
<id>urn:sha1:65ba4ab6f018c08262af98e9e83c1ebbe5c7627c</id>
<content type='text'>
Drop used includes, add a few missing ones and reorder.
The include-what-you-use tool output was considered in making this
change.

Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Reviewed-by: Marcelo Schmitt &lt;marcelo.schmitt1@gmail.com&gt;
Link: https://lore.kernel.org/r/20220206190328.333093-12-jic23@kernel.org
</content>
</entry>
<entry>
<title>staging:iio:adc:ad7280a: Make oversampling_ratio a runtime control</title>
<updated>2022-02-21T19:33:04Z</updated>
<author>
<name>Jonathan Cameron</name>
<email>Jonathan.Cameron@huawei.com</email>
</author>
<published>2022-02-06T19:03:18Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=c5fe2f537b91e17c854135fdc0b46aa0f4f9db78'/>
<id>urn:sha1:c5fe2f537b91e17c854135fdc0b46aa0f4f9db78</id>
<content type='text'>
Oversampling has nothing directly to do with analog circuits or
similar so belongs in the control of userspace as a policy decision.

The only complexity in here was that the acquisition time needs
updating if this setting is changed at runtime (as oversampling
is time consuming).

Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Reviewed-by: Marcelo Schmitt &lt;marcelo.schmitt1@gmail.com&gt;
Link: https://lore.kernel.org/r/20220206190328.333093-11-jic23@kernel.org
</content>
</entry>
<entry>
<title>staging:iio:adc:ad7280a: Trivial comment formatting cleanup</title>
<updated>2022-02-21T19:33:04Z</updated>
<author>
<name>Jonathan Cameron</name>
<email>Jonathan.Cameron@huawei.com</email>
</author>
<published>2022-02-06T19:03:17Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=e0a3ae8e42edd856f3119ac21dd9fb94000342c0'/>
<id>urn:sha1:e0a3ae8e42edd856f3119ac21dd9fb94000342c0</id>
<content type='text'>
IIO uses the
/*
 * stuff
 * more stuff
 */

multi-line style, so use that here as well.

Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Reviewed-by: Marcelo Schmitt &lt;marcelo.schmitt1@gmail.com&gt;
Link: https://lore.kernel.org/r/20220206190328.333093-10-jic23@kernel.org
</content>
</entry>
</feed>
