]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: imu: adis_trigger: Allow level interrupts for FIFO readings
authorRamona Gradinariu <ramona.bolboaca13@gmail.com>
Mon, 27 May 2024 14:26:15 +0000 (17:26 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 4 Jun 2024 18:53:09 +0000 (19:53 +0100)
commit01724ce2d9405b2246bbb69701c74880eb56a34b
tree6deceff141852eb4bb1158df38d4da5365e8dd37
parentf5657c7751d73db8d88c6eee556dce6534620a1f
iio: imu: adis_trigger: Allow level interrupts for FIFO readings

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 <nuno.sa@analog.com>
Signed-off-by: Ramona Gradinariu <ramona.bolboaca13@gmail.com>
Link: https://lore.kernel.org/r/20240527142618.275897-7-ramona.bolboaca13@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/adis_trigger.c
include/linux/iio/imu/adis.h