upstream: [media] cx23885[v4]: Fix interrupt storm when enabling IR receiver
authorLuis Alves <ljalvs@gmail.com>
Wed, 24 Jul 2013 12:06:01 +0000 (09:06 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:51:32 +0000 (11:51 +0900)
commitfcb1a4e999a9269a4e3f714883cffc7bb6a22152
tree2fb164df778b599eebe367b5909ea37634a376cc
parent5fc17fb1bfd60f62a896a350036568bb3e7bd941
upstream: [media] cx23885[v4]: Fix interrupt storm when enabling IR receiver

Apparently the Flatiron genereates an interrupt after the built-in self
test for each of its left and right channels has completed.

Apparently Conexant wire-OR'ed the Flatiron's interrupt output with the
interrupt output of the CX23885 A/V core.

Those interrupts need to be handled, otherwise, they generate an
interrrupt request storm.

So:

- Add flatiron readreg and writereg functions prototypes
  on a new header file;
- Modify the av interrupt handler to cleanup flatiron IRQs if no other
  interrupt handling happens.

Signed-off-by: Luis Alves <ljalvs@gmail.com>
Acked-by: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/pci/cx23885/cx23885-av.c
drivers/media/pci/cx23885/cx23885-video.c
drivers/media/pci/cx23885/cx23885-video.h [new file with mode: 0644]