Skip to contentSkip to conversation

video: da8xx-fb: enable sync lost intr for v2 ip

PATCH In review Darren Etheridge 1 participant 1 message Aug 5, 2013 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH v3 13/20 video: da8xx-fb: enable sync lost intr for v2 ip

From: Afzal Mohammed <[email protected]>

The interrupt handler explicitly has code that handles the sync lost interrupt. However the sync lost interrupt is never actually being enabled in the LCD controller, therefore this interrupt code path is not being exercised. This fix simply enables the generation of the sync lost interrupt by the LCD controller so it can be dealt with appropriately by the interrupt handler.

---
 drivers/video/da8xx-fb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/video/da8xx-fb.c +1 -1
index 893aefe..8384455 100644
@@ -320,7 +320,7 @@ static void lcd_blit(int load_mode, struct da8xx_fb_par *par)
 			reg_int = lcdc_read(LCD_INT_ENABLE_SET_REG) |
 				LCD_V2_END_OF_FRAME0_INT_ENA |
 				LCD_V2_END_OF_FRAME1_INT_ENA |
-				LCD_FRAME_DONE;
+				LCD_FRAME_DONE | LCD_SYNC_LOST;
 			lcdc_write(reg_int, LCD_INT_ENABLE_SET_REG);
 		}
 		reg_dma |= LCD_DUAL_FRAME_BUFFER_ENABLE;
Signature · 1 line
1.7.0.4