projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b16cd5
)
media: ite-cir: check for receive overflow
author
Sean Young
<sean@mess.org>
Mon, 22 Feb 2021 08:08:35 +0000
(09:08 +0100)
committer
Mauro Carvalho Chehab
<mchehab+huawei@kernel.org>
Thu, 11 Mar 2021 10:59:41 +0000
(11:59 +0100)
It's best if this condition is reported.
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/rc/ite-cir.c
patch
|
blob
|
history
diff --git
a/drivers/media/rc/ite-cir.c
b/drivers/media/rc/ite-cir.c
index
624ddcd
..
2e9a6ef
100644
(file)
--- a/
drivers/media/rc/ite-cir.c
+++ b/
drivers/media/rc/ite-cir.c
@@
-235,8
+235,14
@@
static irqreturn_t ite_cir_isr(int irq, void *data)
/* read the interrupt flags */
iflags = dev->params->get_irq_causes(dev);
+ /* Check for RX overflow */
+ if (iflags & ITE_IRQ_RX_FIFO_OVERRUN) {
+ dev_warn(&dev->rdev->dev, "receive overflow\n");
+ ir_raw_event_reset(dev->rdev);
+ }
+
/* check for the receive interrupt */
- if (iflags &
(ITE_IRQ_RX_FIFO | ITE_IRQ_RX_FIFO_OVERRUN)
) {
+ if (iflags &
ITE_IRQ_RX_FIFO
) {
/* read the FIFO bytes */
rx_bytes = dev->params->get_rx_bytes(dev, rx_buf,
ITE_RX_FIFO_LEN);