kernel_optimize_test/drivers/iio
Lars-Peter Clausen f954b098fb iio: xilinx-xadc: Fix clearing interrupt when enabling trigger
When enabling the trigger and unmasking the end-of-sequence (EOS) interrupt
the EOS interrupt should be cleared from the status register. Otherwise it
is possible that it was still set from a previous capture. If that is the
case the interrupt would fire immediately even though no conversion has
been done yet and stale data is being read from the device.

The old code only clears the interrupt if the interrupt was previously
unmasked. Which does not make much sense since the interrupt is always
masked at this point and in addition masking the interrupt does not clear
the interrupt from the status register. So the clearing needs to be done
unconditionally.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Fixes: bdc8cda1d0 ("iio:adc: Add Xilinx XADC driver")
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2020-04-19 17:50:01 +01:00
..
accel Merge 5.6-rc7 into staging-next 2020-03-23 08:01:20 +01:00
adc iio: xilinx-xadc: Fix clearing interrupt when enabling trigger 2020-04-19 17:50:01 +01:00
afe
amplifiers iio: amplifiers: ad8366: add support for HMC1119 Attenuator 2020-03-08 17:28:43 +00:00
buffer iio: buffer: rename 'read_first_n' callback to 'read' 2019-12-29 15:20:09 +00:00
chemical Merge 5.6-rc7 into staging-next 2020-03-23 08:01:20 +01:00
common iio: st_sensors: handle memory allocation failure to fix null pointer dereference 2020-02-14 12:08:22 +00:00
dac iio: dac: ad5770r: fix off-by-one check on maximum number of channels 2020-04-19 17:50:01 +01:00
dummy
frequency iio: adf4350: Convert to use GPIO descriptor 2019-12-15 11:42:16 +00:00
gyro iio: imu: adis: Add self_test_reg variable 2020-03-08 17:28:30 +00:00
health
humidity iio: humidity: dht11 remove TODO since it doesn't make sense 2020-01-12 11:34:15 +00:00
imu iio: imu: st_lsm6dsx: flush hw FIFO before resetting the device 2020-04-19 17:50:01 +01:00
light Merge 5.6-rc7 into staging-next 2020-03-23 08:01:20 +01:00
magnetometer iio: magnetometer: ak8974: Fix negative raw values in sysfs 2020-02-21 11:59:46 +00:00
multiplexer
orientation
potentiometer
potentiostat iio: potentiostat: lmp9100: fix iio_triggered_buffer_{predisable,postenable} positions 2020-03-08 17:28:53 +00:00
pressure counter: 104-quad-8: Support Filter Clock Prescaler 2020-03-08 17:28:52 +00:00
proximity Merge 5.6-rc7 into staging-next 2020-03-23 08:01:20 +01:00
resolver iio: ad2s1200: Drop legacy include 2019-12-15 11:42:15 +00:00
temperature First set of new device support, features and cleanups for IIO in the 5.6 cycle 2020-01-10 10:44:00 +01:00
trigger Merge 5.6-rc7 into staging-next 2020-03-23 08:01:20 +01:00
iio_core_trigger.h
iio_core.h iio: buffer: rename 'read_first_n' callback to 'read' 2019-12-29 15:20:09 +00:00
industrialio-buffer.c Merge 5.5-rc7 into staging-next 2020-01-22 09:05:34 +01:00
industrialio-configfs.c
industrialio-core.c iio: core: Fix handling of 'dB' 2020-04-19 17:50:01 +01:00
industrialio-event.c
industrialio-sw-device.c
industrialio-sw-trigger.c
industrialio-trigger.c
industrialio-triggered-event.c
inkern.c
Kconfig
Makefile
TODO iio: add a TODO 2020-03-08 17:28:53 +00:00