<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-dev/drivers/staging/iio, branch master</title>
<subtitle>Linux kernel development work - see feature branches</subtitle>
<id>https://git.zx2c4.com/linux-dev/atom/drivers/staging/iio?h=master</id>
<link rel='self' href='https://git.zx2c4.com/linux-dev/atom/drivers/staging/iio?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/'/>
<updated>2022-08-20T11:54:43Z</updated>
<entry>
<title>staging: iio: frequency: ad9832: Fix alignment for DMA safety</title>
<updated>2022-08-20T11:54:43Z</updated>
<author>
<name>Jonathan Cameron</name>
<email>Jonathan.Cameron@huawei.com</email>
</author>
<published>2022-08-13T16:06:00Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=83856aaab45da0fd34f94aac0371ba80668c1dbc'/>
<id>urn:sha1:83856aaab45da0fd34f94aac0371ba80668c1dbc</id>
<content type='text'>
____cacheline_aligned is an insufficient guarantee for non-coherent DMA
on platforms with 128 byte cachelines above L1.  Switch to the updated
IIO_DMA_MINALIGN definition.  Whilst here, move the marking to cover
the whole union. That has no functional affect, but makes it slightly
easier to see what is going on.

Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Reviewed-by: Andy Shevchenko &lt;andy.shevchenko@gmail.com&gt;
Link: https://lore.kernel.org/r/20220813160600.1157169-1-jic23@kernel.org
</content>
</entry>
<entry>
<title>staging: iio: resolver: ad2s1210: Fix alignment for DMA safety</title>
<updated>2022-08-15T21:30:02Z</updated>
<author>
<name>Jonathan Cameron</name>
<email>Jonathan.Cameron@huawei.com</email>
</author>
<published>2022-08-07T15:12:18Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=4c0babbd978a98dfbdacbe078817ea9c953b3298'/>
<id>urn:sha1:4c0babbd978a98dfbdacbe078817ea9c953b3298</id>
<content type='text'>
____cacheline_aligned is an insufficient guarantee for non-coherent DMA
on platforms with 128 byte cachelines above L1.  Switch to the updated
IIO_DMA_MINALIGN definition.  As the tx[] an rx[] buffers are only used
in the same SPI exchanges, we should be safe with them on the same cacheline.
Hence only mark the first one __aligned(IIO_DMA_MINALIGN).

Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Reviewed-by: Andy Shevchenko &lt;andy.shevchenko@gmail.com&gt;
Link: https://lore.kernel.org/r/20220807151218.656881-5-jic23@kernel.org
</content>
</entry>
<entry>
<title>staging: iio: meter: ade7854: Fix alignment for DMA safety</title>
<updated>2022-08-15T21:30:01Z</updated>
<author>
<name>Jonathan Cameron</name>
<email>Jonathan.Cameron@huawei.com</email>
</author>
<published>2022-08-07T15:12:17Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=48a1319164d9339ad50a25085cad6b879fef9fbe'/>
<id>urn:sha1:48a1319164d9339ad50a25085cad6b879fef9fbe</id>
<content type='text'>
____cacheline_aligned is an insufficient guarantee for non-coherent DMA
on platforms with 128 byte cachelines above L1.  Switch to the updated
IIO_DMA_MINALIGN definition.

Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Reviewed-by: Andy Shevchenko &lt;andy.shevchenko@gmail.com&gt;
Cc: Rodrigo Siqueira &lt;rodrigosiqueiramelo@gmail.com&gt;
Link: https://lore.kernel.org/r/20220807151218.656881-4-jic23@kernel.org
</content>
</entry>
<entry>
<title>staging: iio: frequency: ad9834: Fix alignment for DMA safety</title>
<updated>2022-08-15T21:30:01Z</updated>
<author>
<name>Jonathan Cameron</name>
<email>Jonathan.Cameron@huawei.com</email>
</author>
<published>2022-08-07T15:12:16Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=e48668a38bf420c660b07851985e6922fcf4b194'/>
<id>urn:sha1:e48668a38bf420c660b07851985e6922fcf4b194</id>
<content type='text'>
____cacheline_aligned is an insufficient guarantee for non-coherent DMA
on platforms with 128 byte cachelines above L1.  Switch to the updated
IIO_DMA_MINALIGN definition.

Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Reviewed-by: Andy Shevchenko &lt;andy.shevchenko@gmail.com&gt;
Link: https://lore.kernel.org/r/20220807151218.656881-3-jic23@kernel.org
</content>
</entry>
<entry>
<title>iio: cdc: ad7746: Move driver out of staging.</title>
<updated>2022-08-15T21:30:01Z</updated>
<author>
<name>Jonathan Cameron</name>
<email>Jonathan.Cameron@huawei.com</email>
</author>
<published>2022-08-07T14:01:44Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=40b5c4d5b5a67e79eef86a653cdc8b10b4d73f11'/>
<id>urn:sha1:40b5c4d5b5a67e79eef86a653cdc8b10b4d73f11</id>
<content type='text'>
All known major issues with this driver resolved so time to move
it out of staging. This also allows us to remove the now empty
staging/iio/cdc directory and build files.

Note this cleanup work was done using the roadtest framework.
https://lore.kernel.org/all/20220311162445.346685-1-vincent.whitchurch@axis.com/

Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Reviewed-by: Andy Shevchenko &lt;andy.shevchenko@gmail.com&gt;
</content>
</entry>
<entry>
<title>staging: iio: ad7746: White space cleanup</title>
<updated>2022-08-15T21:30:01Z</updated>
<author>
<name>Jonathan Cameron</name>
<email>Jonathan.Cameron@huawei.com</email>
</author>
<published>2022-06-26T12:29:35Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=6d6c760954dc3075378ce925f8a511c64cbd908f'/>
<id>urn:sha1:6d6c760954dc3075378ce925f8a511c64cbd908f</id>
<content type='text'>
Tidy up some trivial whitespace issues.

Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Reviewed-by: Andy Shevchenko &lt;andy.shevchenko@gmail.com&gt;
Link: https://lore.kernel.org/r/20220626122938.582107-15-jic23@kernel.org
</content>
</entry>
<entry>
<title>staging: iio: cdc: ad7746: Use read_avail() rather than opencoding.</title>
<updated>2022-08-15T21:30:01Z</updated>
<author>
<name>Jonathan Cameron</name>
<email>Jonathan.Cameron@huawei.com</email>
</author>
<published>2022-06-26T12:29:34Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=4b717201a00576a2aad4d02ae61df363279bd934'/>
<id>urn:sha1:4b717201a00576a2aad4d02ae61df363279bd934</id>
<content type='text'>
Switch over to the IIO core handling for _available attributes
making them available for in kernel users and enforcing correct
naming etc automatically.

Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Reviewed-by: Andy Shevchenko &lt;andy.shevchenko@gmail.com&gt;
Link: https://lore.kernel.org/r/20220626122938.582107-14-jic23@kernel.org
</content>
</entry>
<entry>
<title>staging: iio: cdc: ad7746: Switch from _offset to _zeropoint for differential channels.</title>
<updated>2022-08-15T21:30:01Z</updated>
<author>
<name>Jonathan Cameron</name>
<email>Jonathan.Cameron@huawei.com</email>
</author>
<published>2022-06-26T12:29:33Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=2d72ead25abb72996a7e92608224d2503a3bac9c'/>
<id>urn:sha1:2d72ead25abb72996a7e92608224d2503a3bac9c</id>
<content type='text'>
As this offset is applied equally to both lines of the differential
pair, _ofset should not be used. Use the new ABI _zeropoint instead
to avoid userspace software applying this value when calculating
real value = (_raw + _offset) * _scale

Also add a comment to explain why an offset of 0x800000 is applied
within the driver rather than exposed to userspace.

Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Reviewed-by: Andy Shevchenko &lt;andy.shevchenko@gmail.com&gt;
Link: https://lore.kernel.org/r/20220626122938.582107-13-jic23@kernel.org
</content>
</entry>
<entry>
<title>staging: iio: cdc: ad7746: Use _raw and _scale for temperature channels.</title>
<updated>2022-08-15T21:30:00Z</updated>
<author>
<name>Jonathan Cameron</name>
<email>Jonathan.Cameron@huawei.com</email>
</author>
<published>2022-06-26T12:29:31Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=431e9147b4667d67399fe5db4f8203d55811951b'/>
<id>urn:sha1:431e9147b4667d67399fe5db4f8203d55811951b</id>
<content type='text'>
Performing the maths to rescale a 24 bit raw reading within the driver
was resulting in precision losses.  So make that userspace's problem
by exporting the scale and letting the maths be done in userspace with
appropriate precision.  Issue identified using roadtester testing
framework.

Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Reviewed-by: Andy Shevchenko &lt;andy.shevchenko@gmail.com&gt;
Link: https://lore.kernel.org/r/20220626122938.582107-11-jic23@kernel.org
</content>
</entry>
<entry>
<title>staging: iio: cdc: ad7746: Drop unused i2c_set_clientdata()</title>
<updated>2022-08-15T21:30:00Z</updated>
<author>
<name>Jonathan Cameron</name>
<email>Jonathan.Cameron@huawei.com</email>
</author>
<published>2022-06-26T12:29:30Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=90e7853ce051bca3690d3518e523f427e55c4806'/>
<id>urn:sha1:90e7853ce051bca3690d3518e523f427e55c4806</id>
<content type='text'>
As the comment states, this was only used in remove() and now
there is no explicit remove() function to make use of it.

Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Reviewed-by: Andy Shevchenko &lt;andy.shevchenko@gmail.com&gt;
Link: https://lore.kernel.org/r/20220626122938.582107-10-jic23@kernel.org
</content>
</entry>
</feed>
