<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/include/linux/iio/imu, branch v6.18.21</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=v6.18.21</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=v6.18.21'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2025-02-22T12:23:49+00:00</updated>
<entry>
<title>iio: imu: adis: Add DIAG_STAT register</title>
<updated>2025-02-22T12:23:49+00:00</updated>
<author>
<name>Robert Budai</name>
<email>robert.budai@analog.com</email>
</author>
<published>2025-02-17T10:57:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=9fa98d94131806cae0441d05213d36da480d7389'/>
<id>urn:sha1:9fa98d94131806cae0441d05213d36da480d7389</id>
<content type='text'>
Some devices may have more than 16 bits of status. This patch allows the
user to specify the size of the DIAG_STAT register. It defaults to 2 if
not specified. This is mainly for backward compatibility.

Co-developed-by: Ramona Gradinariu &lt;ramona.gradinariu@analog.com&gt;
Signed-off-by: Ramona Gradinariu &lt;ramona.gradinariu@analog.com&gt;
Co-developed-by: Antoniu Miclaus &lt;antoniu.miclaus@analog.com&gt;
Signed-off-by: Antoniu Miclaus &lt;antoniu.miclaus@analog.com&gt;
Co-developed-by: Nuno Sá &lt;nuno.sa@analog.com&gt;
Signed-off-by: Nuno Sá &lt;nuno.sa@analog.com&gt;
Signed-off-by: Robert Budai &lt;robert.budai@analog.com&gt;
Link: https://patch.msgid.link/20250217105753.605465-4-robert.budai@analog.com
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
</content>
</entry>
<entry>
<title>iio: imu: adis: Add reset to custom ops</title>
<updated>2025-02-22T12:23:19+00:00</updated>
<author>
<name>Robert Budai</name>
<email>robert.budai@analog.com</email>
</author>
<published>2025-02-17T10:57:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=7f15d7a7d12dbcb4a846ca19d9565e0c11ea6694'/>
<id>urn:sha1:7f15d7a7d12dbcb4a846ca19d9565e0c11ea6694</id>
<content type='text'>
This patch allows the custom definition of reset functionality for adis object.
It is useful in cases where the driver does not need to sleep after the reset
since it is handled by the library.

Co-developed-by: Ramona Gradinariu &lt;ramona.gradinariu@analog.com&gt;
Signed-off-by: Ramona Gradinariu &lt;ramona.gradinariu@analog.com&gt;
Co-developed-by: Antoniu Miclaus &lt;antoniu.miclaus@analog.com&gt;
Signed-off-by: Antoniu Miclaus &lt;antoniu.miclaus@analog.com&gt;
Co-developed-by: Nuno Sá &lt;nuno.sa@analog.com&gt;
Signed-off-by: Nuno Sá &lt;nuno.sa@analog.com&gt;
Signed-off-by: Robert Budai &lt;robert.budai@analog.com&gt;
Link: https://patch.msgid.link/20250217105753.605465-3-robert.budai@analog.com
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
</content>
</entry>
<entry>
<title>iio: imu: adis: Add custom ops struct</title>
<updated>2025-02-22T12:22:45+00:00</updated>
<author>
<name>Robert Budai</name>
<email>robert.budai@analog.com</email>
</author>
<published>2025-02-17T10:57:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=3b29bcee8f6f703a5952b85fc2ffcbcfb0862db4'/>
<id>urn:sha1:3b29bcee8f6f703a5952b85fc2ffcbcfb0862db4</id>
<content type='text'>
This patch introduces a custom ops struct letting users define custom read and
write functions. Some adis devices might define a completely different spi
protocol from the one used in the default implementation.

Co-developed-by: Ramona Gradinariu &lt;ramona.gradinariu@analog.com&gt;
Signed-off-by: Ramona Gradinariu &lt;ramona.gradinariu@analog.com&gt;
Co-developed-by: Antoniu Miclaus &lt;antoniu.miclaus@analog.com&gt;
Signed-off-by: Antoniu Miclaus &lt;antoniu.miclaus@analog.com&gt;
Co-developed-by: Nuno Sá &lt;nuno.sa@analog.com&gt;
Signed-off-by: Nuno Sá &lt;nuno.sa@analog.com&gt;
Signed-off-by: Robert Budai &lt;robert.budai@analog.com&gt;
Link: https://patch.msgid.link/20250217105753.605465-2-robert.budai@analog.com
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
</content>
</entry>
<entry>
<title>iio: imu: adis: Remove documented not used elements</title>
<updated>2024-12-07T17:49:11+00:00</updated>
<author>
<name>Robert Budai</name>
<email>robert.budai@analog.com</email>
</author>
<published>2024-11-25T13:35:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=0c39208bc3af6f7afcbcdb675ad8fbe6b3022865'/>
<id>urn:sha1:0c39208bc3af6f7afcbcdb675ad8fbe6b3022865</id>
<content type='text'>
This patch removes elements from adis.h that are documented
but not used anymore.

Signed-off-by: Robert Budai &lt;robert.budai@analog.com&gt;
Link: https://patch.msgid.link/20241125133520.24328-2-robert.budai@analog.com
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
</content>
</entry>
<entry>
<title>iio: imu: adis: remove legacy lock helpers</title>
<updated>2024-06-25T20:04:50+00:00</updated>
<author>
<name>Nuno Sa</name>
<email>nuno.sa@analog.com</email>
</author>
<published>2024-06-18T13:32:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=bb78ad627659fc7a738356951999f2ba79e68059'/>
<id>urn:sha1:bb78ad627659fc7a738356951999f2ba79e68059</id>
<content type='text'>
Since all users were converted to the new cleanup based helper,
adis_dev_lock() and adis_dev_unlock() can now be removed from the lib.

Signed-off-by: Nuno Sa &lt;nuno.sa@analog.com&gt;
Link: https://patch.msgid.link/20240618-dev-iio-adis-cleanup-v1-9-bd93ce7845c7@analog.com
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
</content>
</entry>
<entry>
<title>iio: imu: adis: add cleanup based lock helpers</title>
<updated>2024-06-25T20:04:49+00:00</updated>
<author>
<name>Nuno Sa</name>
<email>nuno.sa@analog.com</email>
</author>
<published>2024-06-18T13:32:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=e6cab1ad9769a6b03dd1ba7ace106c36de85b1a8'/>
<id>urn:sha1:e6cab1ad9769a6b03dd1ba7ace106c36de85b1a8</id>
<content type='text'>
Add two new lock helpers that make use of the cleanup guard() and
scoped_guard() macros. Thus, users won't have to worry about unlocking
which is less prone to errors and allows for simpler error paths.

Signed-off-by: Nuno Sa &lt;nuno.sa@analog.com&gt;
Link: https://patch.msgid.link/20240618-dev-iio-adis-cleanup-v1-3-bd93ce7845c7@analog.com
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
</content>
</entry>
<entry>
<title>iio: imu: adis: move to the cleanup magic</title>
<updated>2024-06-25T20:04:49+00:00</updated>
<author>
<name>Nuno Sa</name>
<email>nuno.sa@analog.com</email>
</author>
<published>2024-06-18T13:32:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=d305b7f34ee11c4901b8da150b641bcffbd3e951'/>
<id>urn:sha1:d305b7f34ee11c4901b8da150b641bcffbd3e951</id>
<content type='text'>
This makes locking and handling error paths simpler.

Signed-off-by: Nuno Sa &lt;nuno.sa@analog.com&gt;
Link: https://patch.msgid.link/20240618-dev-iio-adis-cleanup-v1-2-bd93ce7845c7@analog.com
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
</content>
</entry>
<entry>
<title>iio: imu: adis_trigger: Allow level interrupts for FIFO readings</title>
<updated>2024-06-04T18:53:09+00:00</updated>
<author>
<name>Ramona Gradinariu</name>
<email>ramona.bolboaca13@gmail.com</email>
</author>
<published>2024-05-27T14:26:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=01724ce2d9405b2246bbb69701c74880eb56a34b'/>
<id>urn:sha1:01724ce2d9405b2246bbb69701c74880eb56a34b</id>
<content type='text'>
Currently, adis library allows configuration only for edge interrupts,
needed for data ready sampling.
This patch removes the restriction for level interrupts for devices
which have FIFO support.
Furthermore, in case of devices which have FIFO support,
devm_request_threaded_irq is used for interrupt allocation, to avoid
flooding the processor with the FIFO watermark level interrupt, which
is active until enough data has been read from the FIFO.

Reviewed-by: Nuno Sa &lt;nuno.sa@analog.com&gt;
Signed-off-by: Ramona Gradinariu &lt;ramona.bolboaca13@gmail.com&gt;
Link: https://lore.kernel.org/r/20240527142618.275897-7-ramona.bolboaca13@gmail.com
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
</content>
</entry>
<entry>
<title>iio: imu: adis_buffer: Add buffer setup API with buffer attributes</title>
<updated>2024-06-04T18:53:09+00:00</updated>
<author>
<name>Ramona Gradinariu</name>
<email>ramona.bolboaca13@gmail.com</email>
</author>
<published>2024-05-27T14:26:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=b6e6aca6c2b1b53fb4db4b672eaa2722a75aa6a2'/>
<id>urn:sha1:b6e6aca6c2b1b53fb4db4b672eaa2722a75aa6a2</id>
<content type='text'>
Add new API called devm_adis_setup_buffer_and_trigger_with_attrs() which
also takes buffer attributes as a parameter.
Rewrite devm_adis_setup_buffer_and_trigger() implementation such that it
calls devm_adis_setup_buffer_and_trigger_with_attrs() with buffer
attributes parameter NULL

Reviewed-by: Nuno Sa &lt;nuno.sa@analog.com&gt;
Signed-off-by: Ramona Gradinariu &lt;ramona.bolboaca13@gmail.com&gt;
Link: https://lore.kernel.org/r/20240527142618.275897-4-ramona.bolboaca13@gmail.com
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
</content>
</entry>
<entry>
<title>iio: imu: adis: ensure proper DMA alignment</title>
<updated>2024-01-22T18:59:07+00:00</updated>
<author>
<name>Nuno Sa</name>
<email>nuno.sa@analog.com</email>
</author>
<published>2024-01-17T13:10:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=8e98b87f515d8c4bae521048a037b2cc431c3fd5'/>
<id>urn:sha1:8e98b87f515d8c4bae521048a037b2cc431c3fd5</id>
<content type='text'>
Aligning the buffer to the L1 cache is not sufficient in some platforms
as they might have larger cacheline sizes for caches after L1 and thus,
we can't guarantee DMA safety.

That was the whole reason to introduce IIO_DMA_MINALIGN in [1]. Do the same
for the sigma_delta ADCs.

[1]: https://lore.kernel.org/linux-iio/20220508175712.647246-2-jic23@kernel.org/

Fixes: ccd2b52f4ac6 ("staging:iio: Add common ADIS library")
Signed-off-by: Nuno Sa &lt;nuno.sa@analog.com&gt;
Link: https://lore.kernel.org/r/20240117-adis-improv-v1-1-7f90e9fad200@analog.com
Cc: &lt;Stable@vger.kernel.org&gt;
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
</content>
</entry>
</feed>
