video: da8xx-fb: Add debug message on sync and underflow error
authorManjunathappa, Prakash <prakash.pm@ti.com>
Tue, 6 Dec 2011 13:33:49 +0000 (19:03 +0530)
committerVaibhav Hiremath <hvaibhav@ti.com>
Mon, 23 Jan 2012 19:14:41 +0000 (00:44 +0530)
Patch adds useful debug message on LCDC syn and underflow error.

Signed-off-by: Manjunathappa, Prakash <prakash.pm@ti.com>
Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
drivers/video/da8xx-fb.c

index 2073a61fc5ad6c5fec15e985525895e8324b782c..9e37bf4b1ed7a2c31a09aae9e5d6b05104a65c2c 100644 (file)
@@ -769,6 +769,7 @@ static irqreturn_t lcdc_irq_handler_rev02(int irq, void *arg)
        u32 reg_int;
 
        if ((stat & LCD_SYNC_LOST) && (stat & LCD_FIFO_UNDERFLOW)) {
+               printk(KERN_ERR "LCDC sync lost or underflow error occured\n");
                lcd_disable_raster();
                clk_disable(par->lcdc_clk);
                lcdc_write(stat, LCD_MASKED_STAT_REG);
@@ -832,6 +833,7 @@ static irqreturn_t lcdc_irq_handler_rev01(int irq, void *arg)
        u32 reg_ras;
 
        if ((stat & LCD_SYNC_LOST) && (stat & LCD_FIFO_UNDERFLOW)) {
+               printk(KERN_ERR "LCDC sync lost or underflow error occured\n");
                lcd_disable_raster();
                clk_disable(par->lcdc_clk);
                lcdc_write(stat, LCD_STAT_REG);