]> git.baikalelectronics.ru Git - kernel.git/commit
[media] media: rc: nuvoton: fix rx fifo overrun handling
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 22 May 2016 13:43:40 +0000 (10:43 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 8 Jul 2016 20:03:41 +0000 (17:03 -0300)
commit337b5fd08bd41ca7124a24439ad589f02a8b4ad9
tree9180b9b0eee991c391207befdea0569bdd33629a
parent1989c7d5a4787688527b68e4768f8c299a978d17
[media] media: rc: nuvoton: fix rx fifo overrun handling

To detect a rx fifo overrun it's checked whether the number of elements
in the chip fifo exceeds the fifo size. This check can never return true
and is wrong.
Instead we should generate an interrupt if the fifo overruns.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/rc/nuvoton-cir.c