msm_fb: display: protect dma status for video mode panel

There is a possibility of race condition between dma update in ioctl
context and isr context, hence  add spinlock to protect the dma status
in video mode type panel for safety in dual core environment.

Change-Id: I85a2d76d62816ad92a7b0d60f7788f6c551f8dfb
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
diff --git a/drivers/video/msm/mdp.c b/drivers/video/msm/mdp.c
index 43520e0..e43f729 100644
--- a/drivers/video/msm/mdp.c
+++ b/drivers/video/msm/mdp.c
@@ -875,15 +875,16 @@
 
 	/* LCDC Frame Start */
 	if (mdp_interrupt & LCDC_FRAME_START) {
+		dma = &dma2_data;
+		spin_lock_irqsave(&mdp_spin_lock, flag);
 		/* let's disable LCDC interrupt */
 		mdp_intr_mask &= ~LCDC_FRAME_START;
 		outp32(MDP_INTR_ENABLE, mdp_intr_mask);
-
-		dma = &dma2_data;
 		if (dma->waiting) {
 			dma->waiting = FALSE;
 			complete(&dma->comp);
 		}
+		spin_unlock_irqrestore(&mdp_spin_lock, flag);
 	}
 
 	/* DMA2 LCD-Out Complete */