diff options
author | 2018-06-07 21:52:50 +0300 | |
---|---|---|
committer | 2018-06-24 14:22:41 +0100 | |
commit | b02ec67a8e38875cdc5f9214be885022f11c0017 (patch) | |
tree | bf5f9c1a7635ca5ef0e281524723fb231ee699b5 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | iio: tsl2x7x/tsl2772: avoid potential division by zero (diff) | |
download | wireguard-linux-b02ec67a8e38875cdc5f9214be885022f11c0017.tar.xz wireguard-linux-b02ec67a8e38875cdc5f9214be885022f11c0017.zip |
iio: mma8452: Fix ignoring MMA8452_INT_DRDY
Interrupts are ignored if no event bit is set in the status status
register and this breaks the buffer interface. No data is shown when
running "iio_generic_buffer -n mma8451 -a" and interrupt counts go
crazy.
Fix by not returning IRQ_NONE if DRDY is set.
Fixes: 605f72de137a ("iio: accel: mma8452: improvements to handle
multiple events")
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions