]> git.baikalelectronics.ru Git - kernel.git/commit
[media] saa7134: simplify timer activation
authorSean Young <sean@mess.org>
Mon, 13 Aug 2012 11:59:48 +0000 (08:59 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 13 Aug 2012 19:19:13 +0000 (16:19 -0300)
commitf2562eb1f38e214bc32b4cfdf0db5dce78dd78bf
treed7688629db376758548694346324653ca618d67c
parentb03aa39f9321bd373f9afee96f5e8f946d42141b
[media] saa7134: simplify timer activation

This simplies the code and resolves a possible race condition between
ir_raw_decode_timer_end() and saa7134_raw_decode_irq().

If the interrupt handler is called after ir_raw_decode_timer_end()
calls ir_raw_event_handle() but before clearing ir->active, then the
timer won't be rearmed.

Compile tested only.

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/saa7134/saa7134-input.c
drivers/media/video/saa7134/saa7134.h