Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bbd62d2f authored by Sean Young's avatar Sean Young Committed by Greg Kroah-Hartman
Browse files

media: ite-cir: IR receiver stop working after receive overflow



commit fdc881783099c6343921ff017450831c8766d12a 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: 28c7afb07ccf ("media: ite-cir: check for receive overflow")
Suggested-by: default avatarBryan Pass <bryan.pass@gmail.com>
Tested-by: default avatarBryan Pass <bryan.pass@gmail.com>
Cc: stable@vger.kernel.org>
Signed-off-by: default avatarSean Young <sean@mess.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent eef6cb3d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -283,7 +283,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,