[media] davinci: vpif: capture/display: fix race condition
authorLad, Prabhakar <prabhakar.lad@ti.com>
Fri, 14 Sep 2012 13:22:24 +0000 (10:22 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 26 Sep 2012 20:22:02 +0000 (17:22 -0300)
commit9e18404adac2e8396335eb8e4cb380f619186042
treef27f4da83778b5880c772baccf6900f7959eae1c
parent080fb42b2b1764f3d90d5b69cc7858da1e13be0d
[media] davinci: vpif: capture/display: fix race condition

channel_first_int[][] variable is used as a flag for the ISR,
This flag was being set after enabling the interrupts, There
where situations when the isr occurred even before the flag was set
dues to which it was causing the application hang.
This patch sets  channel_first_int[][] flag just before enabling the
interrupt.

Reported-by: David Oleszkiewicz <doleszki@adsyscontrols.com>
Signed-off-by: Lad, Prabhakar <prabhakar.lad@ti.com>
Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/davinci/vpif_capture.c
drivers/media/platform/davinci/vpif_display.c