linux/drivers/staging/iio
Jonathan Cameron 9623caea2c staging:iio:cdc:ad7150: Rework interrupt handling.
Note this doesn't support everything the chip can do as we ignore
window mode for now (in window / out of window).

* Given the chip doesn't have any way of disabling the threshold
  pins, use disable_irq() etc to mask them except when we actually
  want them enabled (previously events were always enabled).
  Note there are race conditions, but using the current state from
  the status register and disabling interrupts across changes in
  type of event should mean those races result in interrupts,
  but no events to userspace.

* Correctly reflect that there is one threshold line per channel.

* Only take notice of rising edge. If anyone wants the other edge
  then they should set the other threshold (they are available for
  rising and falling directions).  This isn't perfect but it makes
  it a lot simpler.

* If insufficient interrupts are specified in firnware, don't support
  events.

* Adaptive events use the same pos/neg values of thrMD as non adaptive
  ones.

Tested against qemu based emulation.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Link: https://lore.kernel.org/r/20210314181511.531414-13-jic23@kernel.org
2021-04-07 08:36:36 +01:00
..
accel staging: iio: adis16240: add blank line before struct definition 2020-10-26 06:53:09 +01:00
adc iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
addac iio: remove left-over parent assignments 2020-06-14 11:50:04 +01:00
cdc staging:iio:cdc:ad7150: Rework interrupt handling. 2021-04-07 08:36:36 +01:00
Documentation staging:iio:documentation: Drop most generic docs 2020-09-16 19:12:00 +01:00
frequency staging: iio: ad9832: kernel-doc fixes 2021-03-25 19:13:52 +00:00
impedance-analyzer iio: make use of devm_iio_kfifo_buffer_setup() helper 2021-03-11 20:47:01 +00:00
meter Merge 5.1-rc6 into staging-next 2019-04-21 23:18:44 +02:00
resolver iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
Kconfig staging: add missing SPDX lines to Kconfig files 2019-04-03 11:10:15 +02:00
Makefile staging: iio: Drop ADIS16060 driver from staging 2018-06-10 11:52:31 +01:00
TODO staging: iio: remove mention of defunct list 2021-03-25 19:13:49 +00:00