]> 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)
commit6c1cf3ae9c7447e037d1c94e3fd776d9baff0be4
tree9180b9b0eee991c391207befdea0569bdd33629a
parentbb83bc07e31f8e6cbe8f32e563c36386b76ccf7b
[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