media: ite-cir: IR receiver stop working after receive overflow
authorSean Young <sean@mess.org>
Sun, 17 Oct 2021 12:01:15 +0000 (13:01 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 19 Oct 2021 07:08:39 +0000 (08:08 +0100)
commitfdc881783099c6343921ff017450831c8766d12a
treea3e02ef733fe03d833f5653d87014a25826b98c3
parent95f4325de9e612918468f7e6bda633223bae793f
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: 28c7afb07ccf ("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>
drivers/media/rc/ite-cir.c