OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7a28df
)
iio: accel: fxls8962af: return IRQ_HANDLED when fifo is flushed
author
Sean Nyekjaer
<sean@geanix.com>
Tue, 17 Aug 2021 12:43:36 +0000
(14:43 +0200)
committer
Jonathan Cameron
<Jonathan.Cameron@huawei.com>
Tue, 14 Sep 2021 11:02:09 +0000
(12:02 +0100)
fxls8962af_fifo_flush() will return the samples flushed.
So return IRQ_NONE only if an error is returned.
Fixes:
79e3a5bdd9ef
("iio: accel: fxls8962af: add hw buffered sampling")
Signed-off-by: Sean Nyekjaer <sean@geanix.com>
Link:
https://lore.kernel.org/r/20210817124336.1672169-1-sean@geanix.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/fxls8962af-core.c
patch
|
blob
|
history
diff --git
a/drivers/iio/accel/fxls8962af-core.c
b/drivers/iio/accel/fxls8962af-core.c
index
0019f1e
..
f41db9e
100644
(file)
--- a/
drivers/iio/accel/fxls8962af-core.c
+++ b/
drivers/iio/accel/fxls8962af-core.c
@@
-738,7
+738,7
@@
static irqreturn_t fxls8962af_interrupt(int irq, void *p)
if (reg & FXLS8962AF_INT_STATUS_SRC_BUF) {
ret = fxls8962af_fifo_flush(indio_dev);
- if (ret)
+ if (ret
< 0
)
return IRQ_NONE;
return IRQ_HANDLED;