mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 07:38:10 +00:00
media: ite-cir: IR receiver stop working after receive overflow
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: 28c7afb07c
("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>
This commit is contained in:
parent
95f4325de9
commit
fdc8817830
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue