Skip to content

Commit

Permalink
media: ite-cir: IR receiver stop working after receive overflow
Browse files Browse the repository at this point in the history
commit fdc8817 upstream.

On an Intel NUC6iSYK, no IR is reported after a receive overflow.

When a receiver overflow occurs, this condition is only cleared by
reading the fifo. Make sure we read anything in the fifo.

Fixes: 28c7afb ("media: ite-cir: check for receive overflow")
Suggested-by: Bryan Pass <bryan.pass@gmail.com>
Tested-by: Bryan Pass <bryan.pass@gmail.com>
Cc: stable@vger.kernel.org>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
seanyoung authored and gregkh committed Nov 17, 2021
1 parent ac698bd commit 1c83764
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/rc/ite-cir.c
Expand Up @@ -242,7 +242,7 @@ static irqreturn_t ite_cir_isr(int irq, void *data)
}

/* check for the receive interrupt */
if (iflags & ITE_IRQ_RX_FIFO) {
if (iflags & (ITE_IRQ_RX_FIFO | ITE_IRQ_RX_FIFO_OVERRUN)) {
/* read the FIFO bytes */
rx_bytes = dev->params->get_rx_bytes(dev, rx_buf,
ITE_RX_FIFO_LEN);
Expand Down

0 comments on commit 1c83764

Please sign in to comment.