]> git.baikalelectronics.ru Git - kernel.git/commit
[media] nuvoton-cir: fix clearing wake fifo
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 30 Dec 2015 16:40:47 +0000 (14:40 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 25 Jan 2016 17:45:35 +0000 (15:45 -0200)
commit8c146596b32ebb6faaa46e6719456ace9fd34494
tree78cf75f93f406f763e9056fecc1bfb51ac89c134
parent4b213d821dff0482ab0d1187b2c67de9ea4f3c16
[media] nuvoton-cir: fix clearing wake fifo

At least on NVT6779D clearing the wake fifo works in learning mode only
(although this condition is not mentioned in the chip spec).
Setting the clear fifo bit has no effect in wake up mode.
Even if clearing the wake fifo should work in wake up mode on other
chips this workaround doesn't hurt.
If needed the caller of nvt_clear_cir_wake_fifo has to take care
of locking.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/rc/nuvoton-cir.c