From b6d3acff9c04d7d0d39f42ee222f53265a6b5555 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Thu, 22 Oct 2020 15:21:46 +0800 Subject: [PATCH] fixup! (CR): disp: msm:: reset the param value to the default value This code is pick from the project with Android-p, But there is a code error when make propagation from the previous project. We must reset the param after panel enabled every time. Mot-CRs-fixed: (CR) Signed-off-by: houdz1 Change-Id: I164c5bd1dcb89bfcf07627eb2455db0fc9d184b6 Reviewed-on: https://gerrit.mot.com/1782141 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Shanshan Dai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- msm/dsi/dsi_display.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/msm/dsi/dsi_display.c b/msm/dsi/dsi_display.c index 7e735115955d..e216d32d3e24 100644 --- a/msm/dsi/dsi_display.c +++ b/msm/dsi/dsi_display.c @@ -8978,7 +8978,7 @@ int dsi_display_enable(struct dsi_display *display) display->name, rc); goto error; } - + dsi_panel_reset_param(display->panel); dsi_display_enable_status(display, true); } dsi_display_panel_id_notification(display); @@ -8992,7 +8992,6 @@ int dsi_display_enable(struct dsi_display *display) display->name, rc); goto error; } - dsi_panel_reset_param(display->panel); } if (mode->dsi_mode_flags & DSI_MODE_FLAG_DMS) {