Browse Source

disp: msm: dsi: block TE signal check for ESD on video mode panels

If we set esd check mode as TE signal check for video mode panels
the panel will be continuously reset. This change doesn't allow
TE signal check as ESD check mode.

Change-Id: I42a09d605b259d9f06c67cb126d3684ed4489699
Signed-off-by: Satya Rama Aditya Pinapala <[email protected]>
Satya Rama Aditya Pinapala 6 năm trước cách đây
mục cha
commit
8e1a796595
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      msm/dsi/dsi_display.c

+ 4 - 0
msm/dsi/dsi_display.c

@@ -1351,6 +1351,10 @@ static ssize_t debugfs_alter_esd_check_mode(struct file *file,
 		goto error;
 
 	if (!strcmp(buf, "te_signal_check\n")) {
+		if (display->panel->panel_mode == DSI_OP_VIDEO_MODE) {
+			pr_info("TE based ESD check for Video Mode panels is not allowed\n");
+			goto error;
+		}
 		pr_info("ESD check is switched to TE mode by user\n");
 		esd_config->status_mode = ESD_MODE_PANEL_TE;
 		dsi_display_change_te_irq_status(display, true);