]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Nov 2021 10:35:57 +0000 (11:35 +0100)
commit6340df3ec4dfa1a7435eb9109ed6518e155453a0
tree25bb5ee99f338de5a304acc23a9b81f048b810e6
parent1955e6f3d4526b13ea9984834ea972fd3e54dfc6
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: 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>
drivers/media/rc/ite-cir.c