media: ite-cir: check for receive overflow
[ Upstream commit 28c7afb07c ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
3a2270dd3f
commit
b5261590f3
1 changed files with 7 additions and 1 deletions
|
|
@ -276,8 +276,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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue