]> git.baikalelectronics.ru Git - kernel.git/commit
[media] davinci: vpif: add check for genuine interrupts in the isr
authorManjunath Hadli <manjunath.hadli@ti.com>
Fri, 13 Apr 2012 07:43:10 +0000 (04:43 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Jul 2012 21:59:50 +0000 (18:59 -0300)
commit5961b8c0a0d41c5b784d1ceba3a86afd77450dd8
tree934aef5be42746a192fa403d66324b4ec3b3f01d
parenta661310cbfc4d9758da8af51bd1facef46682bfa
[media] davinci: vpif: add check for genuine interrupts in the isr

As the same interrupt is shared between capture and display devices,
sometimes we get isr calls where the interrupt might not genuinely belong
to capture or display. Hence, add a condition in the isr to check for
interrupt ownership and channel number to make sure we do not
service wrong interrupts.

Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com>
Signed-off-by: Lad, Prabhakar <prabhakar.lad@ti.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/davinci/vpif.h
drivers/media/video/davinci/vpif_capture.c
drivers/media/video/davinci/vpif_display.c