From f74a09e94de4dd4c35d964a11c2eed1df68acec1 Mon Sep 17 00:00:00 2001 From: Samantha Tran Date: Wed, 26 May 2021 11:31:32 -0700 Subject: [PATCH] disp: msm: dsi: disable ESD te_signal_check option While altering ESD check to te_signal_check, return error as this option is no longer allowed and should not change ESD mode. Change-Id: I32a9a47aba4e41451ba3d8ffc1eeba41d9f547d7 Signed-off-by: Samantha Tran --- msm/dsi/dsi_display.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/msm/dsi/dsi_display.c b/msm/dsi/dsi_display.c index 327814b15d..8f540b0d25 100644 --- a/msm/dsi/dsi_display.c +++ b/msm/dsi/dsi_display.c @@ -1715,14 +1715,9 @@ static ssize_t debugfs_alter_esd_check_mode(struct file *file, } if (!strcmp(buf, "te_signal_check\n")) { - if (display->panel->panel_mode == DSI_OP_VIDEO_MODE) { - DSI_INFO("TE based ESD check for Video Mode panels is not allowed\n"); - rc = -EINVAL; - goto error; - } - DSI_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); + DSI_INFO("TE based ESD check for panels is not allowed\n"); + rc = -EINVAL; + goto error; } if (!strcmp(buf, "reg_read\n")) {